sim: don't mask the NMI interrupt with the GIE bit.
This commit is contained in:
parent
c5686b70cf
commit
82638f89af
2
sim.c
2
sim.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue