sim: don't mask the NMI interrupt with the GIE bit.

This commit is contained in:
Daniel Beer 2011-03-10 16:44:43 +13:00
parent c5686b70cf
commit 82638f89af
1 changed files with 1 additions and 1 deletions

2
sim.c
View File

@ -497,7 +497,7 @@ static int step_system(struct sim_device *dev)
uint16_t status = dev->regs[MSP430_REG_SR];
irq = simio_check_interrupt();
if ((status & MSP430_SR_GIE) && irq >= 0) {
if (((status & MSP430_SR_GIE) && irq >= 0) || irq >= 14) {
if (irq >= 16) {
printc_err("sim: invalid interrupt number: %d\n", irq);
return -1;