mirror of https://github.com/PCSX2/pcsx2.git
I'm not trying that again anytime soon...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2260 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
434bb37d63
commit
82a506cd04
22
pcsx2/Dmac.h
22
pcsx2/Dmac.h
|
@ -25,13 +25,13 @@ extern u8 *psH; // hw mem
|
|||
|
||||
union tDMA_CHCR {
|
||||
struct {
|
||||
bool DIR : 1;
|
||||
u32 DIR : 1;
|
||||
u32 reserved1 : 1;
|
||||
u32 MOD : 2;
|
||||
u32 ASP : 2;
|
||||
bool TTE : 1;
|
||||
bool TIE : 1;
|
||||
bool STR : 1;
|
||||
u32 TTE : 1;
|
||||
u32 TIE : 1;
|
||||
u32 STR : 1;
|
||||
u32 reserved2 : 7;
|
||||
u32 TAG : 16;
|
||||
};
|
||||
|
@ -142,8 +142,8 @@ enum DMAInter
|
|||
|
||||
union tDMAC_CTRL {
|
||||
struct {
|
||||
bool DMAE : 1;
|
||||
bool RELE : 1;
|
||||
u32 DMAE : 1;
|
||||
u32 RELE : 1;
|
||||
u32 MFD : 2;
|
||||
u32 STS : 2;
|
||||
u32 STD : 2;
|
||||
|
@ -164,13 +164,13 @@ union tDMAC_STAT {
|
|||
struct {
|
||||
u32 CIS : 10;
|
||||
u32 reserved1 : 3;
|
||||
bool SIS : 1;
|
||||
bool MEIS : 1;
|
||||
bool BEIS : 1;
|
||||
u32 SIS : 1;
|
||||
u32 MEIS : 1;
|
||||
u32 BEIS : 1;
|
||||
u32 CIM : 10;
|
||||
u32 reserved2 : 3;
|
||||
bool SIM : 1;
|
||||
bool MEIM : 1;
|
||||
u32 SIM : 1;
|
||||
u32 MEIM : 1;
|
||||
u32 reserved3 : 1;
|
||||
};
|
||||
u32 _u32;
|
||||
|
|
28
pcsx2/Gif.h
28
pcsx2/Gif.h
|
@ -62,9 +62,9 @@ union tGIF_CTRL
|
|||
{
|
||||
struct
|
||||
{
|
||||
bool RST : 1;
|
||||
u32 RST : 1;
|
||||
u32 reserved1 : 2;
|
||||
bool PSE : 1;
|
||||
u32 PSE : 1;
|
||||
u32 reserved2 : 28;
|
||||
};
|
||||
u32 _u32;
|
||||
|
@ -81,9 +81,9 @@ union tGIF_MODE
|
|||
{
|
||||
struct
|
||||
{
|
||||
bool M3R : 1;
|
||||
u32 M3R : 1;
|
||||
u32 reserved1 : 1;
|
||||
bool IMT : 1;
|
||||
u32 IMT : 1;
|
||||
u32 reserved2 : 29;
|
||||
};
|
||||
u32 _u32;
|
||||
|
@ -109,18 +109,18 @@ union tGIF_STAT
|
|||
{
|
||||
struct
|
||||
{
|
||||
bool M3R : 1;
|
||||
bool M3P : 1;
|
||||
bool IMT : 1;
|
||||
bool PSE : 1;
|
||||
u32 M3R : 1;
|
||||
u32 M3P : 1;
|
||||
u32 IMT : 1;
|
||||
u32 PSE : 1;
|
||||
u32 reserved1 : 1;
|
||||
bool IP3 : 1;
|
||||
bool P3Q : 1;
|
||||
bool P2Q : 1;
|
||||
bool P1Q : 1;
|
||||
bool OPH : 1;
|
||||
u32 IP3 : 1;
|
||||
u32 P3Q : 1;
|
||||
u32 P2Q : 1;
|
||||
u32 P1Q : 1;
|
||||
u32 OPH : 1;
|
||||
u32 APATH : 2;
|
||||
bool DIR : 1;
|
||||
u32 DIR : 1;
|
||||
u32 reserved2 : 11;
|
||||
u32 FQC : 5;
|
||||
u32 reserved3 : 3;
|
||||
|
|
38
pcsx2/Vif.h
38
pcsx2/Vif.h
|
@ -87,19 +87,19 @@ enum vif_status
|
|||
union tVIF_STAT {
|
||||
struct {
|
||||
u32 VPS : 2; // Vif(0/1) status; 00 - idle, 01 - waiting for data following vifcode, 10 - decoding vifcode, 11 - decompressing/trasferring data follwing vifcode.
|
||||
bool VEW : 1; // E-bit wait (1 - wait, 0 - don't wait)
|
||||
bool VGW : 1; // Status waiting for the end of gif transfer (Vif1 only)
|
||||
u32 VEW : 1; // E-bit wait (1 - wait, 0 - don't wait)
|
||||
u32 VGW : 1; // Status waiting for the end of gif transfer (Vif1 only)
|
||||
u32 reserved : 2;
|
||||
bool MRK : 1; // Mark Detect
|
||||
bool DBF : 1; // Double Buffer Flag
|
||||
bool VSS : 1; // Stopped by STOP
|
||||
bool VFS : 1; // Stopped by ForceBreak
|
||||
bool VIS : 1; // Vif Interrupt Stall
|
||||
bool INT : 1; // Intereupt by the i bit.
|
||||
bool ER0 : 1; // DmaTag Mismatch error.
|
||||
bool ER1 : 1; // VifCode error
|
||||
u32 MRK : 1; // Mark Detect
|
||||
u32 DBF : 1; // Double Buffer Flag
|
||||
u32 VSS : 1; // Stopped by STOP
|
||||
u32 VFS : 1; // Stopped by ForceBreak
|
||||
u32 VIS : 1; // Vif Interrupt Stall
|
||||
u32 INT : 1; // Intereupt by the i bit.
|
||||
u32 ER0 : 1; // DmaTag Mismatch error.
|
||||
u32 ER1 : 1; // VifCode error
|
||||
u32 reserved2 : 9;
|
||||
bool FDR : 1; // VIF/FIFO transfer direction. (false - memory -> Vif, true - Vif -> memory)
|
||||
u32 FDR : 1; // VIF/FIFO transfer direction. (false - memory -> Vif, true - Vif -> memory)
|
||||
u32 FQC : 5; // Amount of data. Up to 8 qwords on Vif0, 16 on Vif1.
|
||||
};
|
||||
u32 _u32;
|
||||
|
@ -114,10 +114,10 @@ union tVIF_STAT {
|
|||
|
||||
union tVIF_FBRST {
|
||||
struct {
|
||||
bool RST : 1; // Resets Vif(0/1) when written.
|
||||
bool FBK : 1; // Causes a Forcebreak to Vif((0/1) when true. (Stall)
|
||||
bool STP : 1; // Stops after the end of the Vifcode in progress when true. (Stall)
|
||||
bool STC : 1; // Cancels the Vif(0/1) stall and clears Vif Stats VSS, VFS, VIS, INT, ER0 & ER1.
|
||||
u32 RST : 1; // Resets Vif(0/1) when written.
|
||||
u32 FBK : 1; // Causes a Forcebreak to Vif((0/1) when true. (Stall)
|
||||
u32 STP : 1; // Stops after the end of the Vifcode in progress when true. (Stall)
|
||||
u32 STC : 1; // Cancels the Vif(0/1) stall and clears Vif Stats VSS, VFS, VIS, INT, ER0 & ER1.
|
||||
u32 reserved : 28;
|
||||
};
|
||||
u32 _u32;
|
||||
|
@ -132,9 +132,9 @@ union tVIF_FBRST {
|
|||
|
||||
union tVIF_ERR {
|
||||
struct {
|
||||
bool MII : 1; // Masks Stat INT.
|
||||
bool ME0 : 1; // Masks Stat Err0.
|
||||
bool ME1 : 1; // Masks Stat Err1.
|
||||
u32 MII : 1; // Masks Stat INT.
|
||||
u32 ME0 : 1; // Masks Stat Err0.
|
||||
u32 ME1 : 1; // Masks Stat Err1.
|
||||
u32 reserved : 29;
|
||||
};
|
||||
u32 _u32;
|
||||
|
@ -156,7 +156,7 @@ struct vifCycle {
|
|||
struct VIFregisters {
|
||||
tVIF_STAT stat;
|
||||
u32 pad0[3];
|
||||
tVIF_FBRST fbrst;
|
||||
u32 fbrst;
|
||||
u32 pad1[3];
|
||||
tVIF_ERR err;
|
||||
u32 pad2[3];
|
||||
|
|
|
@ -1129,7 +1129,7 @@ void vif1Write32(u32 mem, u32 value)
|
|||
}
|
||||
#endif
|
||||
|
||||
vif1Regs->stat.FDR = (value & VIF1_STAT_FDR);
|
||||
vif1Regs->stat.FDR = !!(value & VIF1_STAT_FDR);
|
||||
//vif1Regs->stat._u32 = (vif1Regs->stat._u32 & ~VIF1_STAT_FDR) | (value & VIF1_STAT_FDR);
|
||||
if (vif1Regs->stat.FDR)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue