X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Flm32%2Fsim-main.h;h=b2efcb977beca0c34beb9057c182245381dcbd87;hb=975f8708de015fb2b813edbf8b714f4777c57a41;hp=a4e44237377fef17d9da14f1d773c2f525438625;hpb=32d0add0a654c1204ab71dc8a55d9374538c4b33;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/lm32/sim-main.h b/sim/lm32/sim-main.h index a4e4423737..b2efcb977b 100644 --- a/sim/lm32/sim-main.h +++ b/sim/lm32/sim-main.h @@ -1,7 +1,7 @@ /* Lattice Mico32 simulator support code Contributed by Jon Beniston - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -23,10 +23,7 @@ #ifndef SIM_MAIN_H #define SIM_MAIN_H -#define USING_SIM_BASE_H /* FIXME: quick hack */ - -struct _sim_cpu; /* FIXME: should be in sim-basics.h */ -typedef struct _sim_cpu SIM_CPU; +#define WITH_SCACHE_PBB 1 #include "symcat.h" #include "sim-basics.h" @@ -34,23 +31,6 @@ typedef struct _sim_cpu SIM_CPU; #include "lm32-desc.h" #include "lm32-opc.h" #include "arch.h" - -/* These must be defined before sim-base.h. */ -typedef USI sim_cia; - -#define CIA_GET(cpu) CPU_PC_GET (cpu) -#define CIA_SET(cpu,val) CPU_PC_SET ((cpu), (val)) - -#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \ -do { \ - if (cpu) /* null if ctrl-c */ \ - sim_pc_set ((cpu), (cia)); \ -} while (0) -#define SIM_ENGINE_RESTART_HOOK(sd, cpu, cia) \ -do { \ - sim_pc_set ((cpu), (cia)); \ -} while (0) - #include "sim-base.h" #include "cgen-sim.h" #include "lm32-sim.h" @@ -83,8 +63,7 @@ struct _sim_cpu struct sim_state { - sim_cpu *cpu; -#define STATE_CPU(sd, n) (/*&*/ (sd)->cpu) + sim_cpu *cpu[MAX_NR_PROCESSORS]; CGEN_STATE cgen_state;