Commit graph

1437 commits

Author SHA1 Message Date
Dillon Beliveau
1086380ea6 Fix compiler warning 2022-06-12 15:58:13 -07:00
Dillon Beliveau
9a897700a2 these are correct 2022-06-12 15:56:58 -07:00
Dillon Beliveau
6fc1536c06 Comments in r4300i_handle_exception 2022-06-12 15:13:10 -07:00
Dillon Beliveau
10c8477e6b TLB exceptions in more instructions, alignment checks 2022-06-12 15:10:19 -07:00
Dillon Beliveau
6032c4662d Rework TLB functions, fix TLBP instruction 2022-06-12 14:26:07 -07:00
Dillon Beliveau
b0a5d646ba use coprocessor error 0 instead of -1 everywhere 2022-06-12 14:05:16 -07:00
Dillon Beliveau
a651fa955c fix SSV for unaligned elements 2022-06-11 20:30:32 -07:00
Dillon Beliveau
c44d4e7f64 CFC2 and CTC2 correct behavior for invalid indices 2022-06-11 19:55:13 -07:00
Dillon Beliveau
50cc6bb969 wrap RSP accesses around the end of DMEM 2022-06-11 19:36:43 -07:00
Dillon Beliveau
e6f2ad07dc Fix RSP link instructions when branch depends on value of LR 2022-06-11 19:29:37 -07:00
Dillon Beliveau
a8f6884817 fix RSP semaphore register 2022-06-11 19:21:47 -07:00
Dillon Beliveau
dcc97e864e overflow exceptions in SUB and DSUB 2022-06-11 18:47:22 -07:00
Dillon Beliveau
6977a0cfef Only raise/lower SP interrupts if only one bit is set 2022-06-11 18:32:53 -07:00
Dillon Beliveau
9c2d235c30 COP0 open bus 2022-06-11 18:30:12 -07:00
Dillon Beliveau
bc6be21d88 save reg, link, check condition to ensure LR is set correctly in BGEZALL 2022-06-11 18:20:42 -07:00
Dillon Beliveau
befc6ad8a4 Condition is checked before link 2022-06-11 17:46:41 -07:00
Dillon Beliveau
c62016aaf9 Simplify TLB registers' masking code 2022-06-11 17:42:07 -07:00
Dillon Beliveau
b6d51f07af quiet! 2022-06-11 17:17:05 -07:00
Dillon Beliveau
8576eaafde Simplify page mask masking logic 2022-06-11 16:41:50 -07:00
Dillon Beliveau
f7969a8444 replace load/store bools with bus_access_t enum 2022-06-11 16:37:00 -07:00
Dillon Beliveau
9295edb8e1 TLB miss exceptions in LH 2022-06-11 16:28:50 -07:00
Dillon Beliveau
8d40b774ab Unused CP0 registers are a single register 2022-06-11 15:46:11 -07:00
Dillon Beliveau
47840896fe CKSEG3 2022-06-11 15:26:33 -07:00
Dillon Beliveau
b9e4a0e1e2 reserved instruction exception 2022-06-11 15:26:22 -07:00
Dillon Beliveau
1d15877f3b Support for TLB exceptions in more instructions, implement XKSEG 2022-06-11 15:12:44 -07:00
Dillon Beliveau
2bd0c760fb TLB exceptions in LL 2022-06-11 14:51:37 -07:00
Dillon Beliveau
ea2d27b447 more TLB fixes 2022-06-11 14:50:12 -07:00
Dillon Beliveau
f7400a7438 TLB fixes 2022-06-11 14:02:04 -07:00
Dillon Beliveau
92b94ecc08 TLBR reads page mask 2022-06-11 12:33:14 -07:00
Dillon Beliveau
bca5d22733 typo 2022-06-11 11:53:52 -07:00
Dillon Beliveau
5fd3da320f fix some cop0 masking and the random/wired registers 2022-06-11 10:42:50 -07:00
Dillon Beliveau
8ef29e1b8d fix test_cpu 2022-06-10 20:46:58 -07:00
Dillon Beliveau
bed9a97b7c Set prev branch flag when needed in dynarec 2022-06-10 20:46:52 -07:00
Dillon Beliveau
7ca66ccf9f Set and use branch_likely_taken flag in dynarec instead of piggybacking on branch flag 2022-06-10 20:33:07 -07:00
Dillon Beliveau
92dbfbd5a9 fix exceptions inside branch delay slots 2022-06-10 19:37:06 -07:00
Dillon Beliveau
4978d2a15a fix ai address increment 2022-06-09 22:40:37 -07:00
Dillon Beliveau
c844f9bc73 fix signed overflow check to be more reliable 2022-06-06 01:11:28 -07:00
Dillon Beliveau
59649b1601 bad_vaddr is read only 2022-06-06 00:37:40 -07:00
Dillon Beliveau
63ad3ea449 address error fixes, context/xcontext masking on writes 2022-06-05 23:59:57 -07:00
Dillon Beliveau
2da81b073e address errors in SW 2022-06-05 22:49:33 -07:00
Dillon Beliveau
f109365215 fix address error exceptions 2022-06-05 22:39:14 -07:00
Dillon Beliveau
7843efe895 fix cast 2022-06-05 16:22:06 -07:00
Dillon Beliveau
718a8ec3cf don't logalways 2022-06-05 15:31:39 -07:00
Dillon Beliveau
3ed1ec641e fix 64 bit CAUSE writes, set coprocessor_error to zero in CAUSE when the error is not with any coprocessor 2022-06-05 15:19:53 -07:00
Dillon Beliveau
da54e19af6 more TRAP instructions 2022-06-05 15:16:26 -07:00
Dillon Beliveau
fc02b2a078 TLB exceptions in SW 2022-06-05 14:28:56 -07:00
Dillon Beliveau
40afb9c887 remove asserts, implement/stub a few things to get n64-systemtest sans TLB/trap tests to run with the interpreter 2022-06-05 14:20:13 -07:00
Dillon Beliveau
68a0c186d2 latest version of tests 2022-01-16 14:37:47 -08:00
Dillon Beliveau
447c0c89a1 mask cl in srav in jit 2022-01-16 14:08:24 -08:00
Dillon Beliveau
f3cd487021 generate rs,rt,rd tests 2022-01-16 14:08:11 -08:00