diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-04-14 00:59:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-04-14 00:59:30 +0000 |
commit | 1e23866b9baa366420ebba4769626db5c7c94b7a (patch) | |
tree | 6114c3e89a33c8e5979cf9e1da5f37ace4126841 /sim/mn10300/sim-main.h | |
parent | e172723d9765df13a880cf728ec18364a4f1cc9d (diff) | |
download | gdb-1e23866b9baa366420ebba4769626db5c7c94b7a.zip gdb-1e23866b9baa366420ebba4769626db5c7c94b7a.tar.gz gdb-1e23866b9baa366420ebba4769626db5c7c94b7a.tar.bz2 |
o Use new `!<field>' and `=<field>' operators in spec of
MOV and CMP instructions.
o Enable basic inlining. Diable use of SIM_MAIN_INLINE.
Diffstat (limited to 'sim/mn10300/sim-main.h')
-rw-r--r-- | sim/mn10300/sim-main.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sim/mn10300/sim-main.h b/sim/mn10300/sim-main.h index fb8cb33..d116a4e 100644 --- a/sim/mn10300/sim-main.h +++ b/sim/mn10300/sim-main.h @@ -20,12 +20,17 @@ */ -#ifndef _SIM_MAIN_H_ -#define _SIM_MAIN_H_ +#ifndef SIM_MAIN_H +#define SIM_MAIN_H #define WITH_CORE #define WITH_WATCHPOINTS 1 +/* FIXME: Need to set up things so that the generated file semantics.c + includes the contents of the file op_utils.c */ +#define SIM_MAIN_INLINE 0 + + #include "sim-basics.h" #include "sim-signal.h" @@ -63,8 +68,11 @@ static const sim_cia null_cia = {0}; /* Dummy */ (sim_core_read_aligned_1(STATE_CPU(sd, 0), EA, exec_map, (EA) + (N))) -#define CIA_GET(CPU) ((CPU)->cia) -#define CIA_SET(CPU,VAL) ((CPU)->cia = (VAL)) +/* FIXME: For moment, save/restore PC value found in struct State. + Struct State will one day go away, being placed in the sim_cpu + state. */ +#define CIA_GET(CPU) ((PC) + 0) +#define CIA_SET(CPU,VAL) ((CPU)->cia = (VAL), PC = (VAL)) struct _sim_cpu { |