fixed argument order of BMC and BRC
This commit is contained in:
parent
3cb3ee1fee
commit
63cf7ac0b0
|
@ -243,7 +243,7 @@ impl<'a, PfHandler: HandlePageFault, const TIMER_QUOTIENT: usize>
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
BMC => {
|
BMC => {
|
||||||
let ParamBBD(src, dst, count) = param!(self, ParamBBD);
|
let ParamBBD(dst, src, count) = param!(self, ParamBBD);
|
||||||
self.memory.block_copy(
|
self.memory.block_copy(
|
||||||
self.read_reg(src).as_u64(),
|
self.read_reg(src).as_u64(),
|
||||||
self.read_reg(dst).as_u64(),
|
self.read_reg(dst).as_u64(),
|
||||||
|
@ -252,7 +252,7 @@ impl<'a, PfHandler: HandlePageFault, const TIMER_QUOTIENT: usize>
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
BRC => {
|
BRC => {
|
||||||
let ParamBBB(src, dst, count) = param!(self, ParamBBB);
|
let ParamBBB(dst, src, count) = param!(self, ParamBBB);
|
||||||
core::ptr::copy(
|
core::ptr::copy(
|
||||||
self.registers.get_unchecked(usize::from(src)),
|
self.registers.get_unchecked(usize::from(src)),
|
||||||
self.registers.get_unchecked_mut(usize::from(dst)),
|
self.registers.get_unchecked_mut(usize::from(dst)),
|
||||||
|
|
Loading…
Reference in a new issue