X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=cpu%2For1korbis.cpu;h=a8002a37185853f7ed8c9b36d248993467f7be8a;hb=1ee1a363454d88a87ad2ade7530b2a7fb670021e;hp=308f37861d4ef5c22d14698fe2ef41a4d808ed35;hpb=6ce26ac7c381c78858b9a7bac344b5cd04bfb03e;p=deliverable%2Fbinutils-gdb.git diff --git a/cpu/or1korbis.cpu b/cpu/or1korbis.cpu index 308f37861d..a8002a3718 100644 --- a/cpu/or1korbis.cpu +++ b/cpu/or1korbis.cpu @@ -76,7 +76,7 @@ 26 INT ((value pc) (sra IAI (sub IAI value pc) (const 2))) - ((value pc) (add IAI (sll IAI value (const 2)) pc)) + ((value pc) (add IAI (mul IAI value (const 4)) pc)) ) ; PC relative, 21-bit, 13 shifted to right, aligned. @@ -91,7 +91,7 @@ ((value pc) (sub IAI (sra IAI value (const 13)) (sra IAI pc (const 13)))) ((value pc) - (sll IAI (add IAI value (sra IAI pc (const 13))) (const 13))) + (mul IAI (add IAI value (sra IAI pc (const 13))) (const 8192))) ) ; Immediates. @@ -433,7 +433,7 @@ ) ) -(dni l-adrp "adrp reg/disp21" +(dni l-adrp "load pc-relative page address" ((MACH ORBIS-MACHS)) "l.adrp $rD,${disp21}" (+ OPC_ADRP rD disp21)