summaryrefslogtreecommitdiff
path: root/rvcontroller.lua
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-10-31 07:40:06 -0500
committercheapie <cheapiephp@gmail.com>2026-10-31 07:40:06 -0500
commitb12ac8698b60c00f618bbdf3527570ff91b37f49 (patch)
treebc4b0fff51b232e1e16604ed972da757fc6de770 /rvcontroller.lua
parenta16b984f06ca52be0785073ee2c21fcae301fff3 (diff)
downloadrvcontroller-b12ac8698b60c00f618bbdf3527570ff91b37f49.tar
rvcontroller-b12ac8698b60c00f618bbdf3527570ff91b37f49.tar.gz
rvcontroller-b12ac8698b60c00f618bbdf3527570ff91b37f49.tar.bz2
rvcontroller-b12ac8698b60c00f618bbdf3527570ff91b37f49.tar.xz
rvcontroller-b12ac8698b60c00f618bbdf3527570ff91b37f49.zip
Fix jalr detection for Zicfilp
Diffstat (limited to 'rvcontroller.lua')
-rw-r--r--rvcontroller.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rvcontroller.lua b/rvcontroller.lua
index 1b787da..40978ca 100644
--- a/rvcontroller.lua
+++ b/rvcontroller.lua
@@ -2782,7 +2782,7 @@ local function checklpe(instruction)
return false
elseif instruction%4 == 3 then
--Uncompressed
- local opcode = instruction%0x100
+ local opcode = instruction%0x80
local bits = explodebits(instruction,32)
if opcode == 0x67 and not (bits[12] or bits[13] or bits[14]) then
--jalr