From: Ethan McKean <[email protected]>

The MAX78000 user guide Section 5.2 and Table 5-1 specify 119 interrupt
entries. The previous value of 120 was based on a misreading of the
table which spans three pages, with entries 0-104 on pages 102-103 and
the remaining entries 105-118 on page 104.

Signed-off-by: Ethan McKean <[email protected]>
---
 hw/arm/max78000_soc.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/hw/arm/max78000_soc.c b/hw/arm/max78000_soc.c
index 7f1856f5ba..1e2f66428d 100644
--- a/hw/arm/max78000_soc.c
+++ b/hw/arm/max78000_soc.c
@@ -88,13 +88,7 @@ static void max78000_soc_realize(DeviceState *dev_soc, Error 
**errp)
 
     armv7m = DEVICE(&s->armv7m);
 
-    /*
-     * The MAX78000 user guide's Interrupt Vector Table section
-     * suggests that there are 120 IRQs in the text, while only listing
-     * 104 in table 5-1. Implement the more generous of the two.
-     * This has not been tested in hardware.
-     */
-    qdev_prop_set_uint32(armv7m, "num-irq", 120);
+    qdev_prop_set_uint32(armv7m, "num-irq", 119);
     qdev_prop_set_uint8(armv7m, "num-prio-bits", 3);
     qdev_prop_set_string(armv7m, "cpu-type", ARM_CPU_TYPE_NAME("cortex-m4"));
     qdev_prop_set_bit(armv7m, "enable-bitband", true);
-- 
2.49.1

Reply via email to