--- nono/vm/bus.h 2026/04/29 17:04:31 1.1.1.2 +++ nono/vm/bus.h 2026/04/29 17:05:10 1.1.1.5 @@ -1,6 +1,11 @@ // // nono -// Copyright (C) 2017 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt +// + +// +// 物理バスアクセス? // #pragma once @@ -15,9 +20,9 @@ extern uint64 vm_phys_write_16(uint32 ad extern uint64 vm_phys_write_32(uint32 addr, uint32 data); extern uint64 vm_phys_peek_8(uint32 addr); -static inline uint64 m88200_phys_peek_32(uint32 addr) +static inline uint64 vm_phys_peek_32(uint32 addr) { - uint32 data; + uint64 data; data = vm_phys_peek_8(addr + 0) << 24; data |= vm_phys_peek_8(addr + 1) << 16; @@ -27,3 +32,4 @@ static inline uint64 m88200_phys_peek_32 } extern IODevice *devtable[256]; +extern int direct_ram_size;