Slight polish to DMA (#1856)

* Slight polish to DMA

- Default-initialize members explicitly
- Mark some methods as const noexcept
- Initialize DMA::MRAMBurstTable to DMATiming::MRAMDummy
- Use the default destructor

* Move DMA_Timings definitions to a source file

- To ensure constant and unique addresses

* Include some extra DMA members in the savestate

* Simplify serializing the DMA table

- Extend the dummy table to 256 bytes (same length as the real ones)

* Revert the type change to DMA::DoSavestate

* Keep the MRAMBurstTable inside the DMA class, instead of using a pointer

- If we use a pointer to an external table, then we can't use it in savestates (else that external table gets overwritten)
This commit is contained in:
Jesse Talavera-Greenberg
2023-10-24 17:27:55 -04:00
committed by GitHub
parent bf81b87a60
commit 8c4e5af737
6 changed files with 284 additions and 223 deletions

View File

@ -25,7 +25,7 @@
#include "types.h"
#define SAVESTATE_MAJOR 10
#define SAVESTATE_MINOR 0
#define SAVESTATE_MINOR 1
class Savestate
{