fix(open-bus): don't rotate result
Rotating misaligned reads is the responsibility of the CPU
This commit is contained in:
parent
dd98066a34
commit
945dbec013
|
@ -169,7 +169,7 @@ fn openBus(self: *const Self, comptime T: type, address: u32) T {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return @truncate(T, rotr(u32, word, 8 * (address & 3)));
|
return @truncate(T, word);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read(self: *Self, comptime T: type, address: u32) T {
|
pub fn read(self: *Self, comptime T: type, address: u32) T {
|
||||||
|
|
Loading…
Reference in New Issue