Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Emulation for other CPUs than x86.
- *
- * Version: @(#)othercpu.h 1.0.0 2019/10/15
- *
- * Authors: Melissa Goad
- *
- * Copyright 2019 Melissa Goad.
- */
- #include <stdio.h>
- #include <stdint.h>
- #include <string.h>
- #include <stdarg.h>
- #include <stdlib.h>
- #include <wchar.h>
- #include "../86box.h"
- #include "../device.h"
- #include "../timer.h"
- enum
- {
- DATABUS_8BIT,
- DATABUS_16BIT,
- DATABUS_32BIT,
- DATABUS_64BIT
- };
- typedef struct _othercpu_device_
- {
- int databus_width;
- uint64_t addressbus_mask;
- int num_memory_spaces;
- uint8_t (*read_byte)(int space, uint64_t addr, void *priv);
- uint16_t (*read_word)(int space, uint64_t addr, void *priv);
- uint32_t (*read_dword)(int space, uint64_t addr, void *priv);
- uint64_t (*read_qword)(int space, uint64_t addr, void *priv);
- void (*write_byte)(int space, uint64_t addr, uint8_t val, void *priv);
- void (*write_word)(int space, uint64_t addr, uint16_t val, void *priv);
- void (*write_dword)(int space, uint64_t addr, uint32_t val, void *priv);
- void (*write_qword)(int space, uint64_t addr, uint64_t val, void *priv);
- pc_timer_t clock_timer;
- uint64_t clock;
- device_t device;
- } othercpu_device_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement