mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 17:47:33 +00:00
Replace ELF section hack with normal table
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2e6100507a
commit
5c55ff99fa
File diff suppressed because it is too large
Load Diff
@ -9260,17 +9260,10 @@ static void fix_opcode_tables (opc_handler_t **ppc_opcodes)
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def)
|
static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def)
|
||||||
{
|
{
|
||||||
opcode_t *opc, *start, *end;
|
opcode_t *opc;
|
||||||
|
|
||||||
fill_new_table(env->opcodes, 0x40);
|
fill_new_table(env->opcodes, 0x40);
|
||||||
if (&opc_start < &opc_end) {
|
for (opc = opcodes; opc < &opcodes[ARRAY_SIZE(opcodes)]; opc++) {
|
||||||
start = &opc_start;
|
|
||||||
end = &opc_end;
|
|
||||||
} else {
|
|
||||||
start = &opc_end;
|
|
||||||
end = &opc_start;
|
|
||||||
}
|
|
||||||
for (opc = start + 1; opc != end; opc++) {
|
|
||||||
if ((opc->handler.type & def->insns_flags) != 0) {
|
if ((opc->handler.type & def->insns_flags) != 0) {
|
||||||
if (register_insn(env->opcodes, opc) < 0) {
|
if (register_insn(env->opcodes, opc) < 0) {
|
||||||
printf("*** ERROR initializing PowerPC instruction "
|
printf("*** ERROR initializing PowerPC instruction "
|
||||||
|
Loading…
Reference in New Issue
Block a user