syscall_emul: Fix undefined macro behavior
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 10 May 2017 12:10:23 +0000 (13:10 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 12 May 2017 09:22:25 +0000 (09:22 +0000)
commit6b1069c4073ba51bdd18a716955ee37915ef89dd
tree580f53283fc21118d1393c56ded54f2ee4e88105
parent32d99f43199ab9a5223c7ba90a63ed224e18e6bb
syscall_emul: Fix undefined macro behavior

Clang's UBSAN implementation complains about macros that expand to
expressions that contain 'defined'. Explicitly set the various feature
macros to 1 or 0 to avoid this issue.

Change-Id: Iba239dacfe526c43ab9c5da5183a350fc4fdc57d
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3241
src/sim/syscall_emul.hh