diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 22:56:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 23:05:02 -0400 |
commit | 5318ba65f8641ddc05e330c8545f9922cd3c48d6 (patch) | |
tree | f513fded4625cf7782aebc2b3e7aa14261b987b1 /sim/rl78/mem.h | |
parent | fa94b3a7c817a5e6615b24eeb3ac569b70af7e81 (diff) | |
download | fsf-binutils-gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.zip fsf-binutils-gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.tar.gz fsf-binutils-gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.tar.bz2 |
sim: rl78: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port.
Fix local prototypes for a bunch of functions (e.g. adding static).
Add missing includes for missing prototypes.
Move local variable decls from the middle of functions to the top
of the scope.
Fix a logic error when processing commands where p was reassigned
to cmd and then has its leading whitespace scanned a 2nd time.
Handle short reads with fread().
Diffstat (limited to 'sim/rl78/mem.h')
-rw-r--r-- | sim/rl78/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/rl78/mem.h b/sim/rl78/mem.h index f04b36a..77d2f18 100644 --- a/sim/rl78/mem.h +++ b/sim/rl78/mem.h @@ -29,6 +29,8 @@ extern unsigned char memory[]; void init_mem (void); +void mem_set_mirror (int rom_base, int ram_base, int length); + /* Pass the amount of bytes, like 2560 for 2.5k */ void mem_ram_size (int ram_bytes); void mem_rom_size (int rom_bytes); |