PPC: remove the ELF section hack
cover PPC: remove the ELF section hack
GEN_HANDLER{,2} generate a structure in special ELF section. This may not work in all cases.
Separate the structure from op function, later change the ELF section hack to a normal C table.
This passes my tests.
Blue Swirl (5):
Clean up GEN_HANDLER
Clean up GEN_HANDLER2
Concentrate most table entries to top
Concentrate rest of table entries to top
Replace ELF section hack with normal table
target-ppc/translate.c | 1511 ++++++++++++++++++++++++++++++++++--------- target-ppc/translate_init.c | 11 +- 2 files changed, 1194 insertions(+), 328 deletions(-)
Quoted 7 lines · Blue Swirl
GEN_HANDLER{,2} generate a structure in special ELF section. This may not work in all cases.
Separate the structure from op function, later change the ELF section hack to a normal C table.
This passes my tests.
Have you tried this on PPC hosts? IIRC malc put in a configure hack to make PPC hosts work with the elf section hacks which should be obsolete with your patch, right? So you can remove the hack as well.
Alex
Quoted 10 lines · Alexander Graf
Quoted 6 lines · Blue Swirl
GEN_HANDLER{,2} generate a structure in special ELF section. This may not work in all cases.
Separate the structure from op function, later change the ELF section hack to a normal C table.
Quoted 6 lines
Quoted 2 lines
This passes my tests.
Have you tried this on PPC hosts? IIRC malc put in a configure hack to make
PPC hosts work with the elf section hacks which should be obsolete with your patch, right? So you can remove the hack as well.
Right, that commit was r6967.