Skip to content

Commit

Permalink
Disable PPC and PPC64 dynrec backends for now
Browse files Browse the repository at this point in the history
Upstream SVN r4424 started refactorization of cpu module, and it breaks
those backends; to be re-enabled once refactorization is done or when
we'll have time to fix it ourselves.
  • Loading branch information
dreamer committed Feb 16, 2021
1 parent 41b865a commit 5151610
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions meson.build
Expand Up @@ -113,9 +113,11 @@ if host_machine.endian() == 'big'
endif

# Non-4K memory page size is supported only for ppc64 at the moment.
if host_machine.cpu_family() in ['ppc64', 'ppc64le']
conf_data.set('PAGESIZE', 65536)
endif
# TODO re-enable ppc dynrec while working on W^X stuff
# disabled because SVN r4424 broke compilation of ppc backends
#if host_machine.cpu_family() in ['ppc64', 'ppc64le']
# conf_data.set('PAGESIZE', 65536)
#endif

set_prio_code = '''
#include <sys/resource.h>
Expand Down
6 changes: 3 additions & 3 deletions src/cpu/meson.build
Expand Up @@ -16,9 +16,9 @@ core_selection = [
[ 'aarch64', ['auto', 'dynrec'], 'C_DYNREC', 'ARMV8LE', 1 ],
[ 'arm', ['auto', 'dynrec'], 'C_DYNREC', 'ARMV7LE', 1 ],
# [ ??? ['auto', 'dynrec'], 'C_DYNREC', 'ARMV4LE', 0 ], # ARMv6 or older (?)
[ 'ppc64', ['auto', 'dynrec'], 'C_DYNREC', 'PPC64LE', 1 ], # for meson >= 0.47.2
[ 'ppc64le', ['auto', 'dynrec'], 'C_DYNREC', 'PPC64LE', 1 ], # for meson < 0.47.2
[ 'ppc', ['auto', 'dynrec'], 'C_DYNREC', 'POWERPC', 1 ],
# [ 'ppc64', ['auto', 'dynrec'], 'C_DYNREC', 'PPC64LE', 1 ], # for meson >= 0.47.2 # SVN r4424 broke compilation of PPC64 backend
# [ 'ppc64le', ['auto', 'dynrec'], 'C_DYNREC', 'PPC64LE', 1 ], # for meson < 0.47.2 # SVN r4424 broke compilation of PPC64 backend
# [ 'ppc', ['auto', 'dynrec'], 'C_DYNREC', 'POWERPC', 1 ], # SVN r4424 broke compilation of PPC backend
# [ 'mips', ['auto', 'dynrec'], 'C_DYNREC', 'MIPSEL', ? ], # disabled in old buildsystem, but code is still there
]

Expand Down

0 comments on commit 5151610

Please sign in to comment.