32x: change ppc handling for better logging

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@791 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-23 21:32:20 +00:00
parent db1d3564e6
commit a44737c187
2 changed files with 6 additions and 3 deletions

View file

@ -367,7 +367,7 @@ INLINE void BRA(UINT32 d)
#if BUSY_LOOP_HACKS
if (disp == -2)
{
UINT32 next_opcode = RW(sh2->ppc & AM);
UINT32 next_opcode = RW(sh2->pc & AM);
/* BRA $
* NOP
*/
@ -795,7 +795,7 @@ INLINE void DT(UINT32 n)
sh2->sr &= ~T;
#if BUSY_LOOP_HACKS
{
UINT32 next_opcode = RW(sh2->ppc & AM);
UINT32 next_opcode = RW(sh2->pc & AM);
/* DT Rn
* BF $-2
*/

View file

@ -71,15 +71,18 @@ int sh2_execute(SH2 *sh2_, int cycles)
if (sh2->delay)
{
sh2->ppc = sh2->delay;
opcode = RW(sh2->delay);
sh2->pc -= 2;
}
else
{
sh2->ppc = sh2->pc;
opcode = RW(sh2->pc);
}
sh2->delay = 0;
sh2->pc += 2;
sh2->ppc = sh2->pc;
switch (opcode & ( 15 << 12))
{