remove siminterface.h from bochs.h and include it only where required

This commit is contained in:
Stanislav Shwartsman 2021-01-30 19:40:18 +00:00
parent 3bc8cdc91a
commit 7cc9cffeed
36 changed files with 82 additions and 38 deletions

View File

@ -103,7 +103,7 @@ extern "C" {
#include "osdep.h" /* platform dependent includes and defines */
#include "bx_debug/debug.h"
#include "gui/siminterface.h"
#include "gui/paramtree.h"
// BX_SHARE_PATH should be defined by the makefile. If not, give it
// a value of NULL to avoid compile problems.
@ -302,6 +302,20 @@ void CDECL bx_signal_handler(int signum);
int bx_atexit(void);
BOCHSAPI extern bx_debug_t bx_dbg;
enum {
#define bx_define_cpudb(model) bx_cpudb_##model,
#include "cpudb.h"
bx_cpudb_model_last
};
#undef bx_define_cpudb
#if BX_SUPPORT_SMP
#define BX_SMP_PROCESSORS (bx_cpu_count)
#else
#define BX_SMP_PROCESSORS 1
#endif
BOCHSAPI extern Bit8u bx_cpu_count;
#if BX_SUPPORT_APIC
// determinted by XAPIC option
BOCHSAPI extern Bit32u apic_id_mask;

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "phenomx3_8650_toliman.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "ryzen.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "trinity_apu.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "zambezi.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "atom_n270.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "broadwell_ult.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "core2_penryn_t9600.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "core_duo_t2400_yonah.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei3_cnl.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei5_arrandale_m520.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei5_lynnfield_750.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei7_haswell_4770.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu/cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei7_icelake-u.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei7_ivy_bridge_3770K.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei7_sandy_bridge_2600K.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "corei7_skylake-x.h"

View File

@ -23,6 +23,7 @@
#include "bochs.h"
#include "cpu/cpu.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "tigerlake.h"

View File

@ -22,6 +22,7 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#include "gui/siminterface.h"
#include "cpu.h"
#include "param_names.h"
#include "cpuid.h"

View File

@ -22,6 +22,7 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#include "gui/siminterface.h"
#include "cpu.h"
#include "param_names.h"
#include "generic_cpuid.h"

View File

@ -25,6 +25,7 @@
#include "cpu.h"
#define LOG_THIS BX_CPU_THIS_PTR
#include "gui/siminterface.h"
#include "param_names.h"
#include "cpustats.h"

View File

@ -22,6 +22,7 @@
#define NEED_CPU_REG_SHORTCUTS 1
#include "bochs.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "cpu.h"
#define LOG_THIS BX_CPU_THIS_PTR

View File

@ -17,6 +17,7 @@
#include <math.h>
#include "bochs.h"
#include "siminterface.h"
#include "pc_system.h"
#include "cpu/cpu.h"

View File

@ -11,6 +11,7 @@
// Copyright (C) 2008-2021 The Bochs Project
#include "bochs.h"
#include "siminterface.h"
#include "enh_dbg.h"
#if BX_DEBUGGER && BX_DEBUGGER_GUI

View File

@ -18,6 +18,11 @@
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef BX_GUI_H
#define BX_GUI_H
#include "gui/siminterface.h"
// header bar and status bar stuff
#define BX_HEADER_BAR_Y 32
@ -581,3 +586,5 @@ enum {
} \
return(0); /* Success */ \
}
#endif

View File

@ -21,6 +21,7 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#include "siminterface.h"
#include "paramtree.h"
/////////////////////////////////////////////////////////////////////////

View File

@ -19,6 +19,10 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
/////////////////////////////////////////////////////////////////////////
#ifndef BX_SIM_INTERFACE_H
#define BX_SIM_INTERFACE_H
//
// Intro to siminterface by Bryce Denney:
//
@ -126,19 +130,6 @@
// base value for generated new parameter id
#define BXP_NEW_PARAM_ID 1001
enum {
#define bx_define_cpudb(model) bx_cpudb_##model,
#include "cpudb.h"
bx_cpudb_model_last
};
#undef bx_define_cpudb
#if BX_SUPPORT_SMP
#define BX_SMP_PROCESSORS (bx_cpu_count)
#else
#define BX_SMP_PROCESSORS 1
#endif
typedef enum {
BX_TOOLBAR_UNDEFINED,
BX_TOOLBAR_FLOPPYA,
@ -155,27 +146,6 @@ typedef enum {
BX_TOOLBAR_USER
} bx_toolbar_buttons;
// Log level defines
typedef enum {
LOGLEV_DEBUG = 0,
LOGLEV_INFO,
LOGLEV_ERROR,
LOGLEV_PANIC,
N_LOGLEV
} bx_log_levels;
// Log action defines
typedef enum {
ACT_IGNORE = 0,
ACT_REPORT,
ACT_WARN,
ACT_ASK,
ACT_FATAL,
N_ACT
} bx_log_actions;
#define BX_NULL_PREFIX "[ ]"
// normally all action choices are available for all event types. The exclude
// expression allows some choices to be eliminated if they don't make any
// sense. For example, it would be stupid to ignore a panic.
@ -187,8 +157,7 @@ typedef enum {
)
// floppy / cdrom media status
#define BX_EJECTED 0
#define BX_INSERTED 1
enum { BX_EJECTED = 0, BX_INSERTED = 1 };
// boot devices (using the same values as the rombios)
enum {
@ -866,4 +835,5 @@ typedef struct BOCHSAPI {
BOCHSAPI extern bx_startup_flags_t bx_startup_flags;
BOCHSAPI extern bool bx_user_quit;
BOCHSAPI extern Bit8u bx_cpu_count;
#endif

View File

@ -51,6 +51,7 @@ extern "C" {
#include "osdep.h"
#include "param_names.h"
#include "textconfig.h"
#include "logio.h"
#include "siminterface.h"
#define CI_PATH_LENGTH 512

View File

@ -11,6 +11,7 @@
// Copyright (C) 2008-2021 The Bochs Project
#include "bochs.h"
#include "siminterface.h"
#include "win32dialog.h"
#include "enh_dbg.h"

View File

@ -20,6 +20,7 @@
#include "win32dialog.h"
#include "bochs.h"
#include "siminterface.h"
#include "win32res.h"
#if BX_USE_WIN32CONFIG

View File

@ -26,6 +26,7 @@
#define BX_PLUGGABLE
#include "bochs.h"
#include "gui/siminterface.h"
#include "ddc.h"
#include "param_names.h"

View File

@ -29,6 +29,7 @@
#include "plugin.h"
#include "param_names.h"
#include "pc_system.h"
#include "gui/siminterface.h"
#include "gui/gui.h"
/* number of IRQ lines supported. In an ISA PC there are two

View File

@ -22,6 +22,7 @@
#include "bochs.h"
#include "param_names.h"
#include "gui/siminterface.h"
#include "pc_system.h"
#include "slowdown_timer.h"

View File

@ -58,6 +58,7 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#include "gui/siminterface.h"
#include "param_names.h"
#include "virt_timer.h"

View File

@ -21,6 +21,7 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#include "gui/siminterface.h"
#include "pc_system.h"
#include "bxthread.h"
#include "cpu/cpu.h"

View File

@ -23,6 +23,25 @@
#ifndef BX_LOGIO_H
#define BX_LOGIO_H
// Log level defines
typedef enum {
LOGLEV_DEBUG = 0,
LOGLEV_INFO,
LOGLEV_ERROR,
LOGLEV_PANIC,
N_LOGLEV
} bx_log_levels;
// Log action defines
typedef enum {
ACT_IGNORE = 0,
ACT_REPORT,
ACT_WARN,
ACT_ASK,
ACT_FATAL,
N_ACT
} bx_log_actions;
typedef class BOCHSAPI logfunctions
{
char *name;
@ -146,4 +165,6 @@ typedef class iofunctions iofunc_t;
BOCHSAPI extern iofunc_t *io;
BOCHSAPI extern logfunc_t *genlog;
#define BX_NULL_PREFIX "[ ]"
#endif