From 7c7d707f1092924c52719dcaeacc595449d24268 Mon Sep 17 00:00:00 2001
From: Michel Pollet <buserror@gmail.com>
Date: Mon, 14 Nov 2016 08:38:11 +0000
Subject: [PATCH] cores: Add RAMPZ for the 1284p core

That was missing, fixes Issue #186

Signed-off-by: Michel Pollet <buserror@gmail.com>
---
 simavr/cores/sim_megax4.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/simavr/cores/sim_megax4.h b/simavr/cores/sim_megax4.h
index c1b59ec..9a22b85 100644
--- a/simavr/cores/sim_megax4.h
+++ b/simavr/cores/sim_megax4.h
@@ -79,6 +79,9 @@ const struct mcu_t SIM_CORENAME = {
 
 		.init = mx4_init,
 		.reset = mx4_reset,
+#ifdef RAMPZ	/* for 1284p */
+		.rampz = RAMPZ,	// extended program memory access
+#endif
 	},
 	AVR_EEPROM_DECLARE(EE_READY_vect),
 	AVR_SELFPROG_DECLARE(SPMCSR, SPMEN, SPM_READY_vect),
-- 
2.39.5