diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-14 20:10:10 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-19 12:41:32 +0930 |
commit | c7631501b22bb607a10396621ad4b82c357ae938 (patch) | |
tree | 3081fda67b4a0e5ad4fd220e4b70e726ea873f2f /sim/lm32 | |
parent | e7ad52cde6c8bb7e592ce60cdfe508cd00c3db11 (diff) | |
download | gdb-c7631501b22bb607a10396621ad4b82c357ae938.zip gdb-c7631501b22bb607a10396621ad4b82c357ae938.tar.gz gdb-c7631501b22bb607a10396621ad4b82c357ae938.tar.bz2 |
sim regen preparation
Regerating sim loses commit 1be79b1ebfad from sim/lm32/cpu.h, a
generated file, so this patch move those declarations to
sim/lm32/sim-main.h.
Diffstat (limited to 'sim/lm32')
-rw-r--r-- | sim/lm32/cpu.h | 11 | ||||
-rw-r--r-- | sim/lm32/sim-main.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sim/lm32/cpu.h b/sim/lm32/cpu.h index d7ce731..805f1eb 100644 --- a/sim/lm32/cpu.h +++ b/sim/lm32/cpu.h @@ -163,17 +163,6 @@ struct scache { struct argbuf argbuf; }; -/* From traps.c. */ -extern USI lm32bf_b_insn (SIM_CPU * current_cpu, USI r0, USI f_r0); -extern USI lm32bf_divu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2); -extern USI lm32bf_modu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2); -extern void lm32bf_wcsr_insn (SIM_CPU * current_cpu, USI f_csr, USI r1); -extern USI lm32bf_break_insn (SIM_CPU * current_cpu, IADDR pc); -extern USI lm32bf_scall_insn (SIM_CPU * current_cpu, IADDR pc); - -/* From user.c. */ -extern UINT lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm); - /* Macros to simplify extraction, reading and semantic code. These define and assign the local vars that contain the insn's fields. */ diff --git a/sim/lm32/sim-main.h b/sim/lm32/sim-main.h index 82e8198..e0e967c 100644 --- a/sim/lm32/sim-main.h +++ b/sim/lm32/sim-main.h @@ -56,4 +56,15 @@ extern SIM_CORE_SIGNAL_FN lm32_core_signal; lm32_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \ (TRANSFER), (ERROR)) +/* From traps.c. */ +extern USI lm32bf_b_insn (SIM_CPU * current_cpu, USI r0, USI f_r0); +extern USI lm32bf_divu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2); +extern USI lm32bf_modu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2); +extern void lm32bf_wcsr_insn (SIM_CPU * current_cpu, USI f_csr, USI r1); +extern USI lm32bf_break_insn (SIM_CPU * current_cpu, IADDR pc); +extern USI lm32bf_scall_insn (SIM_CPU * current_cpu, IADDR pc); + +/* From user.c. */ +extern UINT lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm); + #endif /* SIM_MAIN_H */ |