From b48b0972f0c9cd65a3b91b362535d1f4eef4a1de Mon Sep 17 00:00:00 2001 From: root <182859762@qq.com> Date: Wed, 19 Jun 2024 20:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0inline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ src/nba/src/hw/dma/dma.hpp | 4 ++-- src/wasm/module.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0d58c4e..1fe46e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ build/ +debug/ +.vscode/ nba.* build.sh \ No newline at end of file diff --git a/src/nba/src/hw/dma/dma.hpp b/src/nba/src/hw/dma/dma.hpp index c248b4a..5dff7ab 100644 --- a/src/nba/src/hw/dma/dma.hpp +++ b/src/nba/src/hw/dma/dma.hpp @@ -36,8 +36,8 @@ struct DMA { auto Run() -> int; auto Read (int chan_id, int offset) -> u8; void Write(int chan_id, int offset, u8 value); - bool IsRunning() { return runnable_set.any(); } - auto GetOpenBusValue() -> u32 { return latch; } + inline bool IsRunning() { return runnable_set.any(); } + inline auto GetOpenBusValue() -> u32 { return latch; } void LoadState(SaveState const& state); void CopyState(SaveState& state); diff --git a/src/wasm/module.cpp b/src/wasm/module.cpp index 60e3c14..dfd71d1 100644 --- a/src/wasm/module.cpp +++ b/src/wasm/module.cpp @@ -193,7 +193,7 @@ void replay() } else if( backup_value[0] == 2 ) { - backup = std::make_unique( fs::path{"/"}, backup_value[1] > 64*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_128K ); + backup = std::make_unique( fs::path{"/"}, backup_value[1] > 512*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_64K ); } else if( backup_value[0] == 3 ) {