Skip to content

Commit

Permalink
Port code from @gdwnldsKSC/es40 regarding S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Remy van Elst committed Apr 30, 2024
1 parent b9a7de4 commit 7a3e8c5
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 34 deletions.
8 changes: 4 additions & 4 deletions src/AlphaCPU_vmspal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
#define r30 state.r[30]
#define r31 state.r[31]

#define hw_stq(a, b) cSystem->WriteMem(a & ~U64(0x7), 64, b, this)
#define hw_stl(a, b) cSystem->WriteMem(a & ~U64(0x3), 32, b, this)
#define hw_stq(a, b) cSystem->WriteMem((a) & ~U64(0x7), 64, b, this)
#define hw_stl(a, b) cSystem->WriteMem((a) & ~U64(0x3), 32, b, this)
#define stq(a, b) \
if (virt2phys(a, &phys_address, ACCESS_WRITE, NULL, 0)) \
return -1; \
Expand All @@ -106,8 +106,8 @@
if (virt2phys(a, &phys_address, ACCESS_READ, NULL, 0)) \
return -1; \
b = (char)(cSystem->ReadMem(phys_address, 8, this));
#define hw_ldq(a, b) b = cSystem->ReadMem(a & ~U64(0x7), 64, this)
#define hw_ldl(a, b) b = sext_u64_32(cSystem->ReadMem(a & ~U64(0x3), 32, this));
#define hw_ldq(a, b) b = cSystem->ReadMem((a) & ~U64(0x7), 64, this)
#define hw_ldl(a, b) b = sext_u64_32(cSystem->ReadMem((a) & ~U64(0x3), 32, this));
#define hw_ldbu(a, b) b = cSystem->ReadMem(a, 8, this)

/**
Expand Down
Loading

0 comments on commit 7a3e8c5

Please sign in to comment.