Skip to contentSkip to conversation

PPC: remove the ELF section hack

PATCH In review Blue Swirl 2 participants 3 messages Jun 12, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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(-)
#1 lore raw
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

author
#2 lore raw
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.