These are only used in this file and lack prototypes, so gcc
complains about it. Add static everywhere to clean that up.
+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.
cpu->cpu_regs.sp = val;
}
-uint16
+static uint16
cpu_get_reg (sim_cpu *cpu, uint8 reg)
{
switch (reg)
}
}
-uint16
+static uint16
cpu_get_src_reg (sim_cpu *cpu, uint8 reg)
{
switch (reg)
}
}
-void
+static void
cpu_set_dst_reg (sim_cpu *cpu, uint8 reg, uint16 val)
{
switch (reg)
}
}
-void
+static void
cpu_set_reg (sim_cpu *cpu, uint8 reg, uint16 val)
{
switch (reg)
return addr;
}
-uint8
+static uint8
cpu_get_indexed_operand8 (sim_cpu *cpu, int restricted)
{
uint16 addr;
return memory_read8 (cpu, addr);
}
-uint16
+static uint16
cpu_get_indexed_operand16 (sim_cpu *cpu, int restricted)
{
uint16 addr;