only set stuff up for binning interrupts if interrupt binning is on
kern/linux/linux_system.cc: Don't scheduling interrupt events if we are not binning interrupts kern/tru64/tru64_system.cc: set the bin_int boolean in the system structure --HG-- extra : convert_revision : 68eea9c448f1c481fc79be1777acb536d6385495
This commit is contained in:
parent
ac422ac949
commit
a7c089ab06
2 changed files with 23 additions and 19 deletions
|
@ -145,6 +145,8 @@ LinuxSystem::LinuxSystem(Params *p)
|
||||||
printThreadEvent->schedule(addr + sizeof(MachInst) * 6);
|
printThreadEvent->schedule(addr + sizeof(MachInst) * 6);
|
||||||
|
|
||||||
intStartEvent = new InterruptStartEvent(&pcEventQueue, "intStartEvent");
|
intStartEvent = new InterruptStartEvent(&pcEventQueue, "intStartEvent");
|
||||||
|
|
||||||
|
if (params->bin_int) {
|
||||||
if (palSymtab->findAddress("sys_int_21", addr))
|
if (palSymtab->findAddress("sys_int_21", addr))
|
||||||
intStartEvent->schedule(addr + sizeof(MachInst) * 2);
|
intStartEvent->schedule(addr + sizeof(MachInst) * 2);
|
||||||
else
|
else
|
||||||
|
@ -169,6 +171,7 @@ LinuxSystem::LinuxSystem(Params *p)
|
||||||
else
|
else
|
||||||
panic("could not find symbol: do_softirq\n");
|
panic("could not find symbol: do_softirq\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LinuxSystem::~LinuxSystem()
|
LinuxSystem::~LinuxSystem()
|
||||||
{
|
{
|
||||||
|
|
|
@ -168,6 +168,7 @@ CREATE_SIM_OBJECT(Tru64System)
|
||||||
p->system_rev = system_rev;
|
p->system_rev = system_rev;
|
||||||
p->bin = bin;
|
p->bin = bin;
|
||||||
p->binned_fns = binned_fns;
|
p->binned_fns = binned_fns;
|
||||||
|
p->bin_int = false;
|
||||||
|
|
||||||
return new Tru64System(p);
|
return new Tru64System(p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue