diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:27:24 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:28:38 -0500 |
commit | b9e016f517c8e7f4ce2da4cf06d9f35b908428fc (patch) | |
tree | eb84d2798861778c257ee38a8adf9fd1f33b528e /sim | |
parent | fb8d4e59af8a0faf6f38499760546f9fffba299d (diff) | |
download | gdb-b9e016f517c8e7f4ce2da4cf06d9f35b908428fc.zip gdb-b9e016f517c8e7f4ce2da4cf06d9f35b908428fc.tar.gz gdb-b9e016f517c8e7f4ce2da4cf06d9f35b908428fc.tar.bz2 |
sim: m68hc11: localize a few functions
These are only used in this file and lack prototypes, so gcc
complains about it. Add static everywhere to clean that up.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/m68hc11/ChangeLog | 6 | ||||
-rw-r--r-- | sim/m68hc11/m68hc11_sim.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index 7c956d1..e83e11e 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,5 +1,11 @@ 2021-01-30 Mike Frysinger <vapier@gentoo.org> + * m68hc11_sim.c (cpu_set_sp): Add static markings. + (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg, + cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise. + +2021-01-30 Mike Frysinger <vapier@gentoo.org> + * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse. 2021-01-30 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c index 8eaa421..0d78601 100644 --- a/sim/m68hc11/m68hc11_sim.c +++ b/sim/m68hc11/m68hc11_sim.c @@ -115,7 +115,7 @@ cpu_set_sp (sim_cpu *cpu, uint16 val) cpu->cpu_regs.sp = val; } -uint16 +static uint16 cpu_get_reg (sim_cpu *cpu, uint8 reg) { switch (reg) @@ -137,7 +137,7 @@ cpu_get_reg (sim_cpu *cpu, uint8 reg) } } -uint16 +static uint16 cpu_get_src_reg (sim_cpu *cpu, uint8 reg) { switch (reg) @@ -171,7 +171,7 @@ cpu_get_src_reg (sim_cpu *cpu, uint8 reg) } } -void +static void cpu_set_dst_reg (sim_cpu *cpu, uint8 reg, uint16 val) { switch (reg) @@ -213,7 +213,7 @@ cpu_set_dst_reg (sim_cpu *cpu, uint8 reg, uint16 val) } } -void +static void cpu_set_reg (sim_cpu *cpu, uint8 reg, uint16 val) { switch (reg) @@ -346,7 +346,7 @@ cpu_get_indexed_operand_addr (sim_cpu *cpu, int restricted) return addr; } -uint8 +static uint8 cpu_get_indexed_operand8 (sim_cpu *cpu, int restricted) { uint16 addr; @@ -355,7 +355,7 @@ cpu_get_indexed_operand8 (sim_cpu *cpu, int restricted) return memory_read8 (cpu, addr); } -uint16 +static uint16 cpu_get_indexed_operand16 (sim_cpu *cpu, int restricted) { uint16 addr; |