Skip to content

Commit

Permalink
-ps2sony: Fleshing out the skeleton driver. [Ryan Holtz]
Browse files Browse the repository at this point in the history
  * Added ps2timer device to encapsulate Playstation 2 timers.
  * Temporarily hacked R5900 core to always have scratchpad RAM mapped at 0x70000000.
  * Added reference counting to divtlb so that it does not unmap pages that are still shared with other entries.
  * Added a considerable amount of logging to ps2sony.cpp.

-mips3: Added basic Emotion Engine support. [Ryan Holtz]
  * Added S bit to TLB mapping.

  * Added support for VSUB, VIADD, VSQI, VISWR, VOR, LQ, SQ, MFSA, MTSA, MFHI1, MFLO1, MULT1, DIV1, DIVU1, PEXTLW, PADDUW, PMFHI,
  PMFLO, PCPYLD, PCPYUD, SQC2, LQC2 opcodes. [Ryan Holtz]
  • Loading branch information
MooglyGuy committed Jun 28, 2018
1 parent 85a16df commit eb5a8a3
Show file tree
Hide file tree
Showing 14 changed files with 3,337 additions and 731 deletions.
2 changes: 2 additions & 0 deletions scripts/target/mame/mess.lua
Expand Up @@ -3061,6 +3061,8 @@ files {
MAME_DIR .. "src/mame/drivers/pve500.cpp",
MAME_DIR .. "src/mame/drivers/smc777.cpp",
MAME_DIR .. "src/mame/drivers/ps2sony.cpp",
MAME_DIR .. "src/mame/machine/ps2timer.cpp",
MAME_DIR .. "src/mame/machine/ps2timer.h",
}

createMESSProjects(_target, _subtarget, "sord")
Expand Down
1,151 changes: 1,116 additions & 35 deletions src/devices/cpu/mips/mips3.cpp

Large diffs are not rendered by default.

1 comment on commit eb5a8a3

@Tafoid
Copy link
Contributor

@Tafoid Tafoid commented on eb5a8a3 Jul 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm told that this commit is the cause of the current PowerPC 603 (all flavors) and MPC8240 issue causing all machines using those CPU's to crash immediately to prompt. Specifically, Line 185 in src/emu/divtlb.cpp :

   m_refcnt[m_live[liveindex] - 1]--;

Should be in the if on top of it, and maybe more. That line is bad because it's outside of the m_live[liveindex] != 0 test (which means there's no tlb entry there yet)

An easy example set to test would be gcus

Please sign in to comment.