MIPS II, III and IV instructions of the R5900: 64-bit arithmetic, doubleword memory, likely branches, traps.
0/1 a fixed bit, name a field, a bit the decoder ignores
tlti rs (simm imm)
Trap if Less Than Immediate
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | 0 | 0 | 0 | 0 | 1 | rs | 0 | 1 | 0 | 1 | 0 | imm | |||||||||||||||||||
(defmips tlti (:asm "tlti" rs (simm imm)) (:doc "Trap if Less Than Immediate")
(when (< (sgpr rs) (sext 16 imm)) (raise +exc-trap+)))
tltiu rs (simm imm)
Trap if Less Than Immediate Unsigned
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | 0 | 0 | 0 | 0 | 1 | rs | 0 | 1 | 0 | 1 | 1 | imm | |||||||||||||||||||
(defmips tltiu (:asm "tltiu" rs (simm imm)) (:doc "Trap if Less Than Immediate Unsigned")
(when (< (xgpr rs) (wrap 64 (sext 16 imm))) (raise +exc-trap+)))
sync
Synchronize Shared Memory (sync.l)
SYNC (stype 0, also written sync.l) and SYNC.P: "order loads and stores" / wait for the pipeline [EECORE] SYNC.stype. The interpreter completes every access in program order, so both are no-ops (as PCSX2's SYNC()).
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
(defmips sync (:asm "sync") (:doc "Synchronize Shared Memory (sync.l)")
nil)
sync.p
Synchronize the Pipeline
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
(defmips sync.p (:asm "sync.p") (:doc "Synchronize the Pipeline")
nil)
pref op (simm imm) rs
Prefetch
PREF: "a hint ... does not change the architecturally visible state" [MIPSIV] PREF.
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 1 | rs | op | imm | |||||||||||||||||||||||
(defmips pref (:asm "pref" op (simm imm) rs) (:doc "Prefetch")
nil)
cache op (simm imm) rs
Cache Operation
CACHE: operations on the instruction and data caches and the BTAC [EECORE] CACHE (op: IXIN, DHWBIN ...). No cache is modelled: a no-op on the state. Code that relies on a cache line's contents (a write-back cache read through an uncached alias before the writeback) is the machine's to model.
r5900:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 | 1 | rs | op | imm | |||||||||||||||||||||||
(defmips cache (:asm "cache" op (simm imm) rs) (:doc "Cache Operation")
nil)
Made from xspe at b2fac33349db by tools/gen-xspe.py. xspe is GPL-3.0-or-later.