authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-13 19:39:21+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-14 22:18:06+07:00
logb916ba18b6ace62fccc74eb11205946842bba66b
tree07819c2b47b3d87e99899a189e19abf456b362fb
parentdcb12a7941371cee3b62cc3215d89c1f96577372

stage2: sparcv9: Fix Tcc encoding


1 files changed, 1 insertions(+), 1 deletions(-)

src/arch/sparcv9/bits.zig+1-1
......@@ -1061,7 +1061,7 @@ pub const Instruction = union(enum) {
10611061 // Tcc instructions abuse the rd field to store the conditionals.
10621062 return switch (s2) {
10631063 Register => format4a(0b11_1010, ccr, rs1, rs2, @intToEnum(Register, cond)),
1064 u7 => format4e(0b00_0100, ccr, rs1, @intToEnum(Register, cond), rs2),
1064 u7 => format4e(0b11_1010, ccr, rs1, @intToEnum(Register, cond), rs2),
10651065 else => unreachable,
10661066 };
10671067 }