Commit graph

46 commits

Author SHA1 Message Date
fridtjof
4abbc2b163 wip 2026-05-04 14:31:19 +02:00
fridtjof
35dd059fbf translate: don't touch registers in CMPD 2026-05-04 14:31:19 +02:00
fridtjof
a52b787a70 wip! disas: empty insn printers 2026-05-04 14:31:19 +02:00
fridtjof
6291ca5273 wip! cpu: fixup empty restore_state_to_opc 2026-05-04 14:31:19 +02:00
fridtjof
0fcddb1ecf translate: fix popret goto usage 2026-05-04 14:31:19 +02:00
fridtjof
ef4679fca8 decode: fix abs20 remap for load abs 2026-05-04 14:31:19 +02:00
fridtjof
0efe75f98b Revert "wip! maybe??? fix a subtle bug in MOVD imm"
This reverts commit 574767b51e623f6686d3ad70588600b21aa79441.
2026-05-04 14:31:19 +02:00
fridtjof
d97f52906b Revert "wip! some correctness fixes to deal with host register storage vs actual target register size"
This reverts commit e8d1cba15aa8bcd942c87da9e7de3f6ccfd706e3.
2026-05-04 14:31:19 +02:00
fridtjof
42e103ca1b wip! some correctness fixes to deal with host register storage vs actual target register size 2026-05-04 14:31:19 +02:00
fridtjof
2badeffc2e translate: wip lpr/spr (noop still lol) 2026-05-04 14:31:19 +02:00
fridtjof
bfb5c542f1 disas: make buildable for now 2026-05-04 14:31:19 +02:00
fridtjof
010f44408a wip! broken disas, doesnt build right now 2026-05-04 14:31:19 +02:00
fridtjof
83b9b646e8 wip! todo! annotate another source of >16 bit values in backing registers 2026-05-04 14:31:18 +02:00
fridtjof
06f9921116 wip! maybe??? fix a subtle bug in MOVD imm 2026-05-04 14:31:18 +02:00
fridtjof
75a4c5793e wip! translate: implement BR{EQ,NE}0{B,W} 2026-05-04 14:31:18 +02:00
fridtjof
f4503efb20 CR16C: translate: fix pop edge case for CFG.SR=1
e.g. popret 0x2, RA_L is valid, but raised illegal instruction here
2026-05-04 14:31:18 +02:00
fridtjof
5b25a18c95 (still necessary?) translate: implement remap behavior for STORi with abs20 2026-05-04 14:31:18 +02:00
fridtjof
7037504166 wip! status register management 2026-05-04 14:31:18 +02:00
fridtjof
ecdcafd570 helper: report exit by guest 2026-05-04 14:31:18 +02:00
fridtjof
2b96aa2f41 wip! implement LPR(D), SPR(D) (stubs only) 2026-05-04 14:31:18 +02:00
fridtjof
3382fc1700 wip! implement BAL, PUSH, POP(RET) 2026-05-04 14:31:18 +02:00
fridtjof
7b0d3b1a53 wip! hack! dump_regs "semihosting" helper through excp dbg 2026-05-04 14:31:18 +02:00
fridtjof
0fc68742a3 wip! cpu: implement some ops that previously crashed because they're not there 2026-05-04 14:31:18 +02:00
fridtjof
d3c73feda0 wip! random debugging stuff, halt/debug on illegal insn 2026-05-04 14:31:18 +02:00
fridtjof
22697cd1d5
CR16C: Rename f_* to psr_* 2026-05-04 14:27:42 +02:00
Jonas Bewig
d585386a0f
CR16C: Add missing cbit/sbit flag side effect
Co-authored-by: fridtjof <fridtjof@das-labor.org>
2026-05-03 23:40:28 +02:00
Jonas Bewig
38769badc2
CR16C: Implement bit operations 2026-05-03 20:46:10 +02:00
Jonas Bewig
92b96a26c8
CR16C: Fix abs24 and disp20 rel load/stor insns 2026-04-22 22:52:12 +02:00
fridtjof
fd3b855757 CR16C: cpu: fix gen_goto to actually use the slot ID provided 2025-09-14 16:04:20 +02:00
fridtjof
d0b2f99c50 CR16C: fix build for 10.1 2025-09-14 16:04:20 +02:00
Jonas Bewig
ba467c5acb
CR16: Fix storw imm storing dword instead of word 2025-08-18 10:51:13 +02:00
Jonas Bewig
9bfee3cda8
CR16C: Fix brcond with negative displacement
Co-authored-by: fridtjof <fridtjof@das-labor.org>
2025-08-14 20:36:11 +02:00
Jonas Bewig
a7f71a31c2
CR16: Make ra and sp usable 2025-08-14 11:00:59 +02:00
Jonas Bewig
3fc0f53606
CR16C: Clean up boards
Implement a generic virt board and the basic structure for the Gigaset DE410 board.
2025-08-14 10:39:59 +02:00
Jonas Bewig
8c748ec01a
CR16C: Fix exit translation block 2025-08-13 09:19:44 +02:00
Jonas Bewig
361b5a2c43
CR16C: tcg code cleanup 2025-07-30 15:13:34 +02:00
Jonas Bewig
7a155e70f7
CR16C: Implement load and store opcodes 2025-07-19 21:23:59 +02:00
Jonas Bewig
f187e29f56
CR16C: Implement 32 bit register support 2025-05-29 16:18:44 +02:00
Jonas Bewig
f2e0e9ce51
CR16C: Implement shift opcodes 2025-05-11 20:48:20 +02:00
Jonas Bewig
b08e5b60be
CR16C: Implement scond opcode 2025-05-07 15:58:55 +02:00
Jonas Bewig
6d806d1cf3
CR16C: Implement xor opcodes 2025-05-05 20:42:13 +02:00
Jonas Bewig
f7a7bb9a47
CR16C: Implement or opcodes 2025-05-05 15:16:23 +02:00
Jonas Bewig
898a86c90a
CR16C: Implement and opcodes 2025-05-05 13:17:17 +02:00
Jonas Bewig
4d7152ee96
CR16C: Implement cmp opcodes 2025-05-05 11:19:09 +02:00
Jonas Bewig
df4af6231c CR16C: Implement sub opcodes 2025-04-18 13:52:23 +02:00
Jonas Bewig
005bf105aa
WIP 2025-04-14 09:07:59 +02:00