Skip to content

Commit c763150

Browse files
committed
sim regen preparation
Regerating sim loses commit 1be79b1 from sim/lm32/cpu.h, a generated file, so this patch move those declarations to sim/lm32/sim-main.h.
1 parent e7ad52c commit c763150

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

sim/lm32/cpu.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,6 @@ struct scache {
163163
struct argbuf argbuf;
164164
};
165165

166-
/* From traps.c. */
167-
extern USI lm32bf_b_insn (SIM_CPU * current_cpu, USI r0, USI f_r0);
168-
extern USI lm32bf_divu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2);
169-
extern USI lm32bf_modu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2);
170-
extern void lm32bf_wcsr_insn (SIM_CPU * current_cpu, USI f_csr, USI r1);
171-
extern USI lm32bf_break_insn (SIM_CPU * current_cpu, IADDR pc);
172-
extern USI lm32bf_scall_insn (SIM_CPU * current_cpu, IADDR pc);
173-
174-
/* From user.c. */
175-
extern UINT lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm);
176-
177166
/* Macros to simplify extraction, reading and semantic code.
178167
These define and assign the local vars that contain the insn's fields. */
179168

sim/lm32/sim-main.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,15 @@ extern SIM_CORE_SIGNAL_FN lm32_core_signal;
5656
lm32_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
5757
(TRANSFER), (ERROR))
5858

59+
/* From traps.c. */
60+
extern USI lm32bf_b_insn (SIM_CPU * current_cpu, USI r0, USI f_r0);
61+
extern USI lm32bf_divu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2);
62+
extern USI lm32bf_modu_insn (SIM_CPU * current_cpu, IADDR pc, USI r0, USI r1, USI r2);
63+
extern void lm32bf_wcsr_insn (SIM_CPU * current_cpu, USI f_csr, USI r1);
64+
extern USI lm32bf_break_insn (SIM_CPU * current_cpu, IADDR pc);
65+
extern USI lm32bf_scall_insn (SIM_CPU * current_cpu, IADDR pc);
66+
67+
/* From user.c. */
68+
extern UINT lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm);
69+
5970
#endif /* SIM_MAIN_H */

0 commit comments

Comments
 (0)