From 945dbec013125b79004719c6006723248b7b5163 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 22 Oct 2022 21:32:14 -0300 Subject: [PATCH] fix(open-bus): don't rotate result Rotating misaligned reads is the responsibility of the CPU --- src/core/Bus.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Bus.zig b/src/core/Bus.zig index 38f0f50..39d68bb 100644 --- a/src/core/Bus.zig +++ b/src/core/Bus.zig @@ -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 {