From 26aa452c5707e8a4abe6c0ff8dd21e77bc48591f Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Fri, 29 Nov 2024 07:41:45 -0700 Subject: [PATCH] Fix benchmark compiling, again --- benchmark/bench1.cpp | 4 ++-- devices/video/atirage.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmark/bench1.cpp b/benchmark/bench1.cpp index d8e78e2..bf2bee5 100644 --- a/benchmark/bench1.cpp +++ b/benchmark/bench1.cpp @@ -75,7 +75,7 @@ int main(int argc, char** argv) { /* load executable code into RAM at address 0 */ for (i = 0; i < sizeof(cs_code) / sizeof(cs_code[0]); i++) { - mmu_write_vmem(i*4, cs_code[i]); + mmu_write_vmem(0, i * 4, cs_code[i]); } srand(0xCAFEBABE); @@ -85,7 +85,7 @@ int main(int argc, char** argv) { bool did_lf = false; for (i = 0; i < test_size; i++) { uint8_t val = rand() % 256; - mmu_write_vmem(0x1000+i, val); + mmu_write_vmem(0, 0x1000+i, val); if (i < 64) { printf("%02x", val); did_lf = false; diff --git a/devices/video/atirage.cpp b/devices/video/atirage.cpp index d1b3930..f78c45c 100644 --- a/devices/video/atirage.cpp +++ b/devices/video/atirage.cpp @@ -142,6 +142,8 @@ ATIRage::ATIRage(uint16_t dev_id) uint8_t mon_code = this->disp_id->read_monitor_sense(0, 0); this->regs[ATI_GP_IO] = ((mon_code & 6) << 11) | ((mon_code & 1) << 8); + this->regs[ATI_SRC_Y] = 96; + this->regs[ATI_DST_Y] = 0; insert_bits(this->regs[ATI_GUI_STAT], 32, ATI_FIFO_CNT, ATI_FIFO_CNT_size); set_bit(regs[ATI_CRTC_GEN_CNTL], ATI_CRTC_DISPLAY_DIS); // because blank_on is true