add more features to configure scripts in repo (they are used for building release)

add SVM, EVEX, CET

reduce compilation dependencies
remove paramtree.h from bochs.h so many modules won't include it anymore

indentation fixes
This commit is contained in:
Shwartsman 2023-10-16 16:31:14 +03:00
parent 221cac7972
commit daa0e4506d
12 changed files with 35 additions and 9 deletions

View File

@ -32,7 +32,10 @@ case $which_config in
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \
@ -58,7 +61,10 @@ case $which_config in
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -24,7 +24,10 @@ export CXXFLAGS
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -26,7 +26,10 @@ export LDFLAGS
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -21,7 +21,10 @@ export CXXFLAGS
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -9,7 +9,10 @@ set echo
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -16,13 +16,15 @@ export CXXFLAGS
export WINDRES
./configure --host=x86_64-linux --target=x86_64-mingw32 \
--enable-sb16 \
--enable-ne2000 \
--enable-all-optimizations \
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -9,7 +9,10 @@ set echo
--enable-cpu-level=6 \
--enable-x86-64 \
--enable-vmx=2 \
--enable-svm \
--enable-avx \
--enable-evex \
--enable-cet \
--enable-pci \
--enable-clgd54xx \
--enable-voodoo \

View File

@ -102,7 +102,9 @@ extern "C" {
#endif
#include "osdep.h" /* platform dependent includes and defines */
#include "gui/paramtree.h"
class bx_param_c;
class bx_list_c;
// BX_SHARE_PATH should be defined by the makefile. If not, give it
// a value of NULL to avoid compile problems.

View File

@ -28,6 +28,7 @@
#if BX_SUPPORT_SVM
#include "gui/paramtree.h"
#include "decoder/ia_opcodes.h"
extern const char *segname[];

View File

@ -205,6 +205,8 @@ enum {
///// types and definitions used in event structures
#include "paramtree.h"
#define BX_EVT_IS_ASYNC(type) ((type) > __ALL_EVENTS_BELOW_ARE_ASYNC__)
typedef enum {

View File

@ -27,7 +27,7 @@
#define BX_PLUGGABLE
#include "bochs.h"
#include "gui/gui.h"
#include "gui/gui.h" // for BX_KEY_NBKEYS
#include "scancodes.h"
unsigned char translation8042[256] = {

View File

@ -67,18 +67,17 @@ void bx_slowdown_timer_c::init(void)
return;
BX_INFO(("using 'slowdown' timer synchronization method"));
s.MAXmultiplier=MAXMULT;
s.MAXmultiplier = MAXMULT;
s.Q=Qval;
if(s.MAXmultiplier<1)
s.MAXmultiplier=1;
s.start_time=sectousec(time(NULL));
s.start_time = sectousec(time(NULL));
s.start_emulated_time = bx_pc_system.time_usec();
s.lasttime=0;
if (s.timer_handle == BX_NULL_TIMER_HANDLE) {
s.timer_handle=bx_pc_system.register_timer(this, timer_handler, 100 , 1, 1,
"slowdown_timer");
s.timer_handle=bx_pc_system.register_timer(this, timer_handler, 100 , 1, 1, "slowdown_timer");
}
bx_pc_system.deactivate_timer(s.timer_handle);
bx_pc_system.activate_timer(s.timer_handle,(Bit32u)s.Q,0);
@ -108,7 +107,7 @@ void bx_slowdown_timer_c::handle_timer()
Bit64u thistime=(wanttime>totaltime)?wanttime:totaltime;
#if BX_SLOWDOWN_PRINTF_FEEDBACK
printf("Entering slowdown timer handler.\n");
printf("Entering slowdown timer handler\n");
#endif
/* Decide if we're behind.
@ -178,4 +177,3 @@ void bx_slowdown_timer_c::handle_timer()
}
#endif // Diagnostic info
}