2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2015-11-09 08:32:13 +00:00
|
|
|
struct CExitInfo
|
2010-05-30 01:54:42 +00:00
|
|
|
{
|
|
|
|
enum EXIT_REASON
|
|
|
|
{
|
2015-11-09 08:32:13 +00:00
|
|
|
Normal = 0,
|
|
|
|
Normal_NoSysCheck = 1,
|
|
|
|
DoCPU_Action = 2,
|
|
|
|
COP1_Unuseable = 3,
|
|
|
|
DoSysCall = 4,
|
|
|
|
TLBReadMiss = 5,
|
|
|
|
TLBWriteMiss = 6,
|
|
|
|
DivByZero = 7,
|
|
|
|
ExitResetRecompCode = 8,
|
2010-05-30 01:54:42 +00:00
|
|
|
};
|
|
|
|
|
2015-11-09 08:32:13 +00:00
|
|
|
uint32_t ID;
|
|
|
|
uint32_t TargetPC;
|
2010-05-30 01:54:42 +00:00
|
|
|
CRegInfo ExitRegSet;
|
|
|
|
EXIT_REASON reason;
|
|
|
|
STEP_TYPE NextInstruction;
|
2015-11-08 21:11:57 +00:00
|
|
|
uint32_t * JumpLoc; //32bit jump
|
2010-05-30 01:54:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::list<CExitInfo> EXIT_LIST;
|