--- nono/vm/lance.cpp 2026/04/29 17:04:45 1.1.1.7 +++ nono/vm/lance.cpp 2026/04/29 17:04:50 1.1.1.8 @@ -8,7 +8,6 @@ #include "bus.h" #include "config.h" #include "interrupt.h" -#include "mystring.h" #include "mythread.h" #include "zram.h" @@ -91,11 +90,11 @@ LanceDevice::ResetHard() } uint64 -LanceDevice::Read(uint32 addr) +LanceDevice::Read(uint32 offset) { uint32 data; - switch (addr) { + switch (offset) { case 0: // RDP data = ReadData(); return data; @@ -111,9 +110,9 @@ LanceDevice::Read(uint32 addr) } uint64 -LanceDevice::Write(uint32 addr, uint32 data) +LanceDevice::Write(uint32 offset, uint32 data) { - switch (addr) { + switch (offset) { case 0: // RDP WriteData(data); return 0; @@ -128,9 +127,9 @@ LanceDevice::Write(uint32 addr, uint32 d } uint64 -LanceDevice::Peek(uint32 addr) +LanceDevice::Peek(uint32 offset) { - switch (addr) { + switch (offset) { case 0: // RDP { // 今読めるはずのデータ。 @@ -1181,7 +1180,7 @@ LanceDevice::Callback(Event& ev) }; /*static*/ const char * const LanceDevice::csr3names[] = { - "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", "", "", "", "", "", "BSWP", "ACON", "BCON", };