3a4
> * Copyright (c) 2018 TU Dresden
29a31
> * Robert Scheffel
32a35
> #include "arch/riscv/system.hh"
33a37
> #include "cpu/base.hh"
58a63,74
> void Reset::invoke(ThreadContext *tc, const StaticInstPtr &inst)
> {
> if (FullSystem) {
> tc->getCpuPtr()->clearInterrupts(tc->threadId());
> tc->clearArchRegs();
> }
>
> // Advance the PC to the implementation-defined reset vector
> PCState pc = static_cast<RiscvSystem *>(tc->getSystemPtr())->resetVect();
> tc->pcState(pc);
> }
>