> 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
 13:35:04 up 7 days, 13:35,  1 user,  load average: 0.09, 0.08, 0.08
This commit is contained in:
tracer-ics2023
2024-09-25 13:35:04 +08:00
committed by zzy
parent fb5c6b2546
commit 67492d9f8c

View File

@ -37,6 +37,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);
io_write(AM_GPU_FBDRAW, offset % w, offset / w, (void*)buf, len, 1, true);
return len;
}