更新inline
This commit is contained in:
parent
ed4bc6c8c5
commit
b48b0972f0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
build/
|
||||
debug/
|
||||
.vscode/
|
||||
nba.*
|
||||
build.sh
|
@ -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);
|
||||
|
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user