更新inline

This commit is contained in:
root 2024-06-19 20:20:17 +08:00
parent ed4bc6c8c5
commit b48b0972f0
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
build/
debug/
.vscode/
nba.*
build.sh

View File

@ -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);

View File

@ -193,7 +193,7 @@ void replay()
}
else if( backup_value[0] == 2 )
{
backup = std::make_unique<nba::FLASH>( fs::path{"/"}, backup_value[1] > 64*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_128K );
backup = std::make_unique<nba::FLASH>( fs::path{"/"}, backup_value[1] > 512*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_64K );
}
else if( backup_value[0] == 3 )
{