aarch64: Eliminate global opcode_nodes_heads list
Removes global state from AArch64 opcode table processing.
This patch refactors opcodes/aarch64-gen.c to eliminate the global opcode_nodes_head variable. The linked list of opcode nodes is now passed as a local variable throughout the relevant functions, such as read_table and divide_table. This change reduces reliance on global state, making the code more modular and easier to reason about. It also removes an unnecessary empty node at the head of the list.
In Details
Removes the global opcode_nodes_head from opcodes/aarch64-gen.c. The list of opcode nodes, previously managed by this global variable, is now passed as a parameter to functions like read_table and divide_table. This promotes a more functional style by reducing reliance on global mutable state, making the code more self-contained and easier to test or integrate.