diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-11-19 14:06:15 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-11-19 14:06:15 +0100 |
commit | abb6c10f3a5be99396c303e60d286606ddc72e17 (patch) | |
tree | 0b3316ca032be864cdb10cfca15c12f57bdda9c0 /nios2.h | |
parent | ee8bd1d0bd8f243cba595623050815afe411b7b0 (diff) |
Implement memory load/store operations
Diffstat (limited to 'nios2.h')
-rw-r--r-- | nios2.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -105,6 +105,10 @@ extern void nios2_exception(struct nios2 *cpu, uint8_t cause); extern uint32_t nios2_fetch_instr(struct nios2 *cpu); extern int nios2_execute_instr(struct nios2 *cpu, uint32_t instr); +extern int nios2_load_byte(struct nios2 *cpu, uint32_t addr, uint8_t *data); +extern int nios2_store_byte(struct nios2 *cpu, uint32_t addr, uint8_t data); +extern int nios2_load_word(struct nios2 *cpu, uint32_t addr, uint32_t *data); + extern void nios2_dump_registers(struct nios2 *cpu); #endif /* _NIOS2_H_ */ |