> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 17:54:02 up 7 days, 17:54,  1 user,  load average: 0.13, 0.18, 0.13
This commit is contained in:
tracer-ics2023
2024-09-25 17:54:02 +08:00
committed by zzy
parent 0431db56a3
commit b9ed51055d

View File

@ -38,6 +38,7 @@ size_t dispinfo_read(void *buf, size_t offset, size_t len) {
size_t fb_write(const void *buf, size_t offset, size_t len) {
int w = io_read(AM_GPU_CONFIG).width;
offset /= sizeof(uint32_t);
TRACE("fb_write: offset=%d len=%d", offset, len);
io_write(AM_GPU_FBDRAW, offset % w, offset / w, (void*)buf, len, 1, true);
return len;
}