/* Moxie Simulator definition.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2021 Free Software Foundation, Inc.
Contributed by Anthony Green <green@moxielogic.com>
This file is part of GDB, the GNU debugger.
#ifndef SIM_MAIN_H
#define SIM_MAIN_H
-#define SIM_HAVE_BIENDIAN
-
#include "sim-basics.h"
-
-typedef address_word sim_cia;
-
#include "sim-base.h"
#include "bfd.h"
struct _sim_cpu {
/* The following are internal simulator state variables: */
-#define CIA_GET(CPU) ((CPU)->registers[PCIDX] + 0)
-#define CIA_SET(CPU,CIA) ((CPU)->registers[PCIDX] = (CIA))
/* To keep this default simulator simple, and fast, we use a direct
vector of registers. The internal simulator engine then uses
sim_cpu_base base;
};
-struct sim_state {
-
- sim_cpu *cpu[MAX_NR_PROCESSORS];
-#if (WITH_SMP)
-#define STATE_CPU(sd,n) ((sd)->cpu[n])
-#else
-#define STATE_CPU(sd,n) ((sd)->cpu[0])
#endif
-
- sim_state_base base;
-};
-
-#endif
-