1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-04 15:16:06 +00:00

3B2: Header refactoring and cleanup

This change signficantly improves header hygiene in the 3B2 project by
moving global symbols out of 3b2_defs.h and into the appropriate
individual module header files.

Each compilation unit now includes:

  - its appropriate matching .h file
  - any other .h files necessary for linting and compilation

Each header file in turn includes 3b2_defs.h, which contains truly
global symbols, and which pulls in sim_defs.h and exports global
devices.
This commit is contained in:
Seth Morabito
2021-08-11 19:43:51 -07:00
parent 78d3d1b560
commit c02491f733
40 changed files with 235 additions and 131 deletions

View File

@@ -28,9 +28,17 @@
from the author.
*/
#include "3b2_defs.h"
#include "3b2_dmac.h"
#if defined(REV2)
#include "3b2_id.h"
#endif
#include "3b2_cpu.h"
#include "3b2_if.h"
#include "3b2_iu.h"
#include "3b2_mem.h"
DMA_STATE dma_state;
UNIT dmac_unit[] = {