isa.cc (13882:03fe9a85b435) isa.cc (14000:d85c61dc0b5c)
1/*
2 * Copyright (c) 2010-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 51 unchanged lines hidden (view full) ---

60
61ISA::ISA(Params *p)
62 : SimObject(p),
63 system(NULL),
64 _decoderFlavour(p->decoderFlavour),
65 _vecRegRenameMode(Enums::Full),
66 pmu(p->pmu),
67 haveGICv3CPUInterface(false),
1/*
2 * Copyright (c) 2010-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 51 unchanged lines hidden (view full) ---

60
61ISA::ISA(Params *p)
62 : SimObject(p),
63 system(NULL),
64 _decoderFlavour(p->decoderFlavour),
65 _vecRegRenameMode(Enums::Full),
66 pmu(p->pmu),
67 haveGICv3CPUInterface(false),
68 impdefAsNop(p->impdef_nop)
68 impdefAsNop(p->impdef_nop),
69 afterStartup(false)
69{
70 miscRegs[MISCREG_SCTLR_RST] = 0;
71
72 // Hook up a dummy device if we haven't been configured with a
73 // real PMU. By using a dummy device, we don't need to check that
74 // the PMU exist every time we try to access a PMU register.
75 if (!pmu)
76 pmu = &dummyDevice;

--- 324 unchanged lines hidden (view full) ---

401 Gicv3 *gicv3 = dynamic_cast<Gicv3 *>(system->getGIC());
402 if (gicv3) {
403 haveGICv3CPUInterface = true;
404 gicv3CpuInterface.reset(gicv3->getCPUInterface(tc->contextId()));
405 gicv3CpuInterface->setISA(this);
406 gicv3CpuInterface->setThreadContext(tc);
407 }
408 }
70{
71 miscRegs[MISCREG_SCTLR_RST] = 0;
72
73 // Hook up a dummy device if we haven't been configured with a
74 // real PMU. By using a dummy device, we don't need to check that
75 // the PMU exist every time we try to access a PMU register.
76 if (!pmu)
77 pmu = &dummyDevice;

--- 324 unchanged lines hidden (view full) ---

402 Gicv3 *gicv3 = dynamic_cast<Gicv3 *>(system->getGIC());
403 if (gicv3) {
404 haveGICv3CPUInterface = true;
405 gicv3CpuInterface.reset(gicv3->getCPUInterface(tc->contextId()));
406 gicv3CpuInterface->setISA(this);
407 gicv3CpuInterface->setThreadContext(tc);
408 }
409 }
410
411 afterStartup = true;
409}
410
411
412RegVal
413ISA::readMiscRegNoEffect(int misc_reg) const
414{
415 assert(misc_reg < NumMiscRegs);
416

--- 1724 unchanged lines hidden ---
412}
413
414
415RegVal
416ISA::readMiscRegNoEffect(int misc_reg) const
417{
418 assert(misc_reg < NumMiscRegs);
419

--- 1724 unchanged lines hidden ---