Skip to content

Commit 494b072

Browse files
committed
hotfix when push/pop reg list is empty
1 parent 9c406bb commit 494b072

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/gba/rtl/cpu/Decoder.sv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ module GBA_Decoder (
375375

376376
bus.word.arm.block.reg_list = {8'd0, IR_THUMB[7:0]};
377377

378+
if (IR_THUMB[7:0] == 8'd0) bus.word.arm.block.force_no_align_pc = 1'b1;
379+
378380
if (IR_THUMB[11]) begin
379381
// POP = LDMIA SP!
380382
bus.instr_type = ARM_INSTR_LDM;

0 commit comments

Comments
 (0)