aboutsummaryrefslogtreecommitdiff
path: root/sim/avr/sim-main.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/avr/sim-main.h')
-rw-r--r--sim/avr/sim-main.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sim/avr/sim-main.h b/sim/avr/sim-main.h
index e0cac22..d317bf8 100644
--- a/sim/avr/sim-main.h
+++ b/sim/avr/sim-main.h
@@ -21,19 +21,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-basics.h"
-extern unsigned int pc;
-
#include "sim-base.h"
struct _sim_cpu {
+ /* The only real register. */
+ uint32_t pc;
+
+ /* We update a cycle counter. */
+ uint32_t cycles;
sim_cpu_base base;
};
struct sim_state {
-
sim_cpu *cpu[MAX_NR_PROCESSORS];
+ /* If true, the pc needs more than 2 bytes. */
+ int avr_pc22;
+
sim_state_base base;
};