diff options
author | lloyd <[email protected]> | 2009-12-29 20:58:53 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-29 20:58:53 +0000 |
commit | 5cae9cd00a4b326f097703669fea07970ea63901 (patch) | |
tree | 3f0a3dfed2870dcfb63a37f682e0895e5ead67f2 /configure.py | |
parent | 3073f497124a0b4e0aa95a75ee94eec52e887ae7 (diff) |
New macro TARGET_CPU_IS_XXX_FAMILY for XXX = X86, PPC, SPARC, undefined
elsewhere currently.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py index fa4be8bd1..8eedf64b1 100755 --- a/configure.py +++ b/configure.py @@ -527,6 +527,7 @@ class ArchInfo(object): lex_me_harder(infofile, self, ['aliases', 'submodels', 'submodel_aliases', 'isa_extn'], { 'endian': None, + 'family': None, 'unaligned': 'no' }) @@ -596,6 +597,9 @@ class ArchInfo(object): if unaligned_ok: logging.info('Assuming unaligned memory access works') + if self.family is not None: + macros.append('TARGET_CPU_IS_%s_FAMILY' % (self.family.upper())) + macros.append('TARGET_UNALIGNED_MEMORY_ACCESS_OK %d' % (unaligned_ok)) return macros |