fix: account for pipeline in obscure bios behaviour
This commit is contained in:
parent
05b5081351
commit
750fdb65ae
|
@ -39,12 +39,12 @@ pub fn read(self: *Self, comptime T: type, r15: u32, addr: u32) T {
|
|||
}
|
||||
|
||||
log.debug("Rejected read since r15=0x{X:0>8}", .{r15});
|
||||
return @truncate(T, self.uncheckedRead(T, self.addr_latch + 8));
|
||||
return @truncate(T, self.uncheckedRead(T, self.addr_latch));
|
||||
}
|
||||
|
||||
pub fn dbgRead(self: *const Self, comptime T: type, r15: u32, addr: u32) T {
|
||||
if (r15 < Self.size) return self.uncheckedRead(T, addr);
|
||||
return @truncate(T, self.uncheckedRead(T, self.addr_latch + 8));
|
||||
return @truncate(T, self.uncheckedRead(T, self.addr_latch));
|
||||
}
|
||||
|
||||
fn uncheckedRead(self: *const Self, comptime T: type, addr: u32) T {
|
||||
|
|
Loading…
Reference in New Issue