aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/m68hc11_sim.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-31 01:54:47 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-31 01:54:47 -0400
commit2b6ca06237301286016acc4b7bbf5338a27fd5fc (patch)
tree3979e83b738bc7d5d6133676fa3ad044ae6e62cc /sim/m68hc11/m68hc11_sim.c
parentf6862f27a73f08effd88d98c5efdb08abfcf4bb1 (diff)
downloadgdb-2b6ca06237301286016acc4b7bbf5338a27fd5fc.zip
gdb-2b6ca06237301286016acc4b7bbf5338a27fd5fc.tar.gz
gdb-2b6ca06237301286016acc4b7bbf5338a27fd5fc.tar.bz2
sim: m68hc11: fix gcc-5 build error w/restrict keyword
Diffstat (limited to 'sim/m68hc11/m68hc11_sim.c')
-rw-r--r--sim/m68hc11/m68hc11_sim.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c
index f7c4219d..8a04648 100644
--- a/sim/m68hc11/m68hc11_sim.c
+++ b/sim/m68hc11/m68hc11_sim.c
@@ -240,7 +240,7 @@ cpu_set_reg (sim_cpu* cpu, uint8 reg, uint16 val)
/* Returns the address of a 68HC12 indexed operand.
Pre and post modifications are handled on the source register. */
uint16
-cpu_get_indexed_operand_addr (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand_addr (sim_cpu* cpu, int restricted)
{
uint8 reg;
uint16 sval;
@@ -285,7 +285,7 @@ cpu_get_indexed_operand_addr (sim_cpu* cpu, int restrict)
/* [n,r] 16-bits offset indexed indirect. */
else if ((code & 0x07) == 3)
{
- if (restrict)
+ if (restricted)
{
return 0;
}
@@ -297,7 +297,7 @@ cpu_get_indexed_operand_addr (sim_cpu* cpu, int restrict)
}
else if ((code & 0x4) == 0)
{
- if (restrict)
+ if (restricted)
{
return 0;
}
@@ -345,20 +345,20 @@ cpu_get_indexed_operand_addr (sim_cpu* cpu, int restrict)
}
uint8
-cpu_get_indexed_operand8 (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand8 (sim_cpu* cpu, int restricted)
{
uint16 addr;
- addr = cpu_get_indexed_operand_addr (cpu, restrict);
+ addr = cpu_get_indexed_operand_addr (cpu, restricted);
return memory_read8 (cpu, addr);
}
uint16
-cpu_get_indexed_operand16 (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand16 (sim_cpu* cpu, int restricted)
{
uint16 addr;
- addr = cpu_get_indexed_operand_addr (cpu, restrict);
+ addr = cpu_get_indexed_operand_addr (cpu, restricted);
return memory_read16 (cpu, addr);
}