Skip to content

Commit

Permalink
fix: retrieve SCTLR instead of simulating it
Browse files Browse the repository at this point in the history
  • Loading branch information
BugraEryilmaz authored and branylagaffe committed Dec 17, 2024
1 parent 01aa490 commit 28aa070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/uArch/CoreModel/cycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ SCTLR_EL
CoreImpl::_SCTLR(uint32_t anELn)
{
DBG_Assert(anELn >= 0 || anELn <= 3);
return SCTLR_EL(theSCTLR_EL[anELn]);
return Flexus::Qemu::Processor::getProcessor(theNode).read_register(Flexus::Qemu::API::SCTLR, anELn);
}

void
Expand Down

0 comments on commit 28aa070

Please sign in to comment.