diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-17 19:03:32 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-17 19:05:59 -0400 |
commit | a49dd19e81deb6d6c4af0fcadd94be1574f0b7dc (patch) | |
tree | 48b98b45d3d426ea5a5cff731383864199559a57 /sim/ppc/igen.c | |
parent | 336b30e58ae98fe66862ab8480d3f7bb885fef23 (diff) | |
download | gdb-a49dd19e81deb6d6c4af0fcadd94be1574f0b7dc.zip gdb-a49dd19e81deb6d6c4af0fcadd94be1574f0b7dc.tar.gz gdb-a49dd19e81deb6d6c4af0fcadd94be1574f0b7dc.tar.bz2 |
sim: ppc: avoid "PAGE_SIZE" name
This define is used for a particular target and depends on the
simulated CPU hardware. It has no relation to the host CPU that
the sim is running on. So rename the common "PAGE_SIZE" here to
better reflect its usage and avoid conflicts with system headers.
Diffstat (limited to 'sim/ppc/igen.c')
-rw-r--r-- | sim/ppc/igen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c index 0bf3b58..f0ff06b 100644 --- a/sim/ppc/igen.c +++ b/sim/ppc/igen.c @@ -182,7 +182,7 @@ gen_semantics_h(insn_table *table, lf_printf(file, "\n"); if ((code & generate_calls)) { lf_printf(file, "extern int option_mpc860c0;\n"); - lf_printf(file, "#define PAGE_SIZE 0x1000\n"); + lf_printf(file, "#define MPC860C0_PAGE_SIZE 0x1000\n"); lf_printf(file, "\n"); lf_printf(file, "PSIM_EXTERN_SEMANTICS(void)\n"); lf_printf(file, "semantic_init(device* root);\n"); |