mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-10-30 08:02:29 +00:00
dkr fixes
This commit is contained in:
parent
88e48bdcff
commit
9770110c60
2 changed files with 1 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ extern "C" void __ull_to_f_recomp(uint8_t * rdram, recomp_context * ctx) {
|
||||||
ctx->f0.fl = ret;
|
ctx->f0.fl = ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __ull_rshift_recomp(uint8_t * rdram, recomp_context * ctx) {Add commentMore actions
|
extern "C" void __ull_rshift_recomp(uint8_t * rdram, recomp_context * ctx) {
|
||||||
uint64_t a = (ctx->r4 << 32) | ((ctx->r5 << 0) & 0xFFFFFFFFu);
|
uint64_t a = (ctx->r4 << 32) | ((ctx->r5 << 0) & 0xFFFFFFFFu);
|
||||||
uint64_t b = (ctx->r6 << 32) | ((ctx->r7 << 0) & 0xFFFFFFFFu);
|
uint64_t b = (ctx->r6 << 32) | ((ctx->r7 << 0) & 0xFFFFFFFFu);
|
||||||
uint64_t ret = a >> b;
|
uint64_t ret = a >> b;
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,6 @@ void recomp::do_rom_read(uint8_t* rdram, gpr ram_address, uint32_t physical_addr
|
||||||
// TODO handle misaligned DMA
|
// TODO handle misaligned DMA
|
||||||
assert((physical_addr & 0x1) == 0 && "Only PI DMA from aligned ROM addresses is currently supported");
|
assert((physical_addr & 0x1) == 0 && "Only PI DMA from aligned ROM addresses is currently supported");
|
||||||
assert((ram_address & 0x7) == 0 && "Only PI DMA to aligned RDRAM addresses is currently supported");
|
assert((ram_address & 0x7) == 0 && "Only PI DMA to aligned RDRAM addresses is currently supported");
|
||||||
assert((num_bytes & 0x1) == 0 && "Only PI DMA with aligned sizes is currently supported");
|
|
||||||
uint8_t* rom_addr = rom.data() + physical_addr - recomp::rom_base;
|
uint8_t* rom_addr = rom.data() + physical_addr - recomp::rom_base;
|
||||||
for (size_t i = 0; i < num_bytes; i++) {
|
for (size_t i = 0; i < num_bytes; i++) {
|
||||||
MEM_B(i, ram_address) = *rom_addr;
|
MEM_B(i, ram_address) = *rom_addr;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue