comments added and corrected
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1030 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -27,8 +27,8 @@
|
|||||||
#include "iodev/iodev.h"
|
#include "iodev/iodev.h"
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
* BOCHS-MODIFIED
|
* DanceOS - BOCHS-MODIFIED
|
||||||
* Author: Adrian Böckenkamp
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Just a dummy function to define a join-point. This function is
|
// Just a dummy function to define a join-point. This function is
|
||||||
@ -131,7 +131,7 @@ void BX_CPU_C::cpu_loop(Bit32u max_instr_count)
|
|||||||
// If request to return to caller ASAP.
|
// If request to return to caller ASAP.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}else if(sal::restore_bochs_request){
|
}else if(sal::restore_bochs_request){ //DanceOS
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,8 +152,8 @@ void BX_CPU_C::cpu_loop(Bit32u max_instr_count)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
* BOCHS-MODIFIED
|
* DanceOS - BOCHS-MODIFIED
|
||||||
* Author: Adrian Böckenkamp
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defineCPULoopJoinPoint(BX_CPU_THIS, i);
|
defineCPULoopJoinPoint(BX_CPU_THIS, i);
|
||||||
@ -501,8 +501,9 @@ unsigned BX_CPU_C::handleAsyncEvent(void)
|
|||||||
// setting kill_bochs_request causes the cpu loop to return ASAP.
|
// setting kill_bochs_request causes the cpu loop to return ASAP.
|
||||||
return 1; // Return to caller of cpu_loop.
|
return 1; // Return to caller of cpu_loop.
|
||||||
}
|
}
|
||||||
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
else if (sal::restore_bochs_request) { //DanceOS Richard Hellwig
|
else if (sal::restore_bochs_request) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -193,6 +193,7 @@ const struct BxDisasmOpcodeInfo_t
|
|||||||
|
|
||||||
#undef XX
|
#undef XX
|
||||||
|
|
||||||
|
//DanceOS
|
||||||
// workaround for include file clash with cpu/instr.h in conjunction with AspectC++
|
// workaround for include file clash with cpu/instr.h in conjunction with AspectC++
|
||||||
#undef Id
|
#undef Id
|
||||||
#undef Iq
|
#undef Iq
|
||||||
|
|||||||
@ -156,7 +156,7 @@ void bx_gui_c::init(int argc, char **argv, unsigned tilewidth, unsigned tileheig
|
|||||||
BX_GUI_THIS power_bmap_id = create_bitmap(bx_power_bmap, BX_POWER_BMAP_X, BX_POWER_BMAP_Y);
|
BX_GUI_THIS power_bmap_id = create_bitmap(bx_power_bmap, BX_POWER_BMAP_X, BX_POWER_BMAP_Y);
|
||||||
BX_GUI_THIS reset_bmap_id = create_bitmap(bx_reset_bmap, BX_RESET_BMAP_X, BX_RESET_BMAP_Y);
|
BX_GUI_THIS reset_bmap_id = create_bitmap(bx_reset_bmap, BX_RESET_BMAP_X, BX_RESET_BMAP_Y);
|
||||||
BX_GUI_THIS snapshot_bmap_id = create_bitmap(bx_snapshot_bmap, BX_SNAPSHOT_BMAP_X, BX_SNAPSHOT_BMAP_Y);
|
BX_GUI_THIS snapshot_bmap_id = create_bitmap(bx_snapshot_bmap, BX_SNAPSHOT_BMAP_X, BX_SNAPSHOT_BMAP_Y);
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
BX_GUI_THIS restore_bmap_id = create_bitmap(bx_floppya_bmap, BX_FLOPPYA_BMAP_X, BX_FLOPPYA_BMAP_Y);
|
BX_GUI_THIS restore_bmap_id = create_bitmap(bx_floppya_bmap, BX_FLOPPYA_BMAP_X, BX_FLOPPYA_BMAP_Y);
|
||||||
#endif
|
#endif
|
||||||
@ -225,7 +225,7 @@ void bx_gui_c::init(int argc, char **argv, unsigned tilewidth, unsigned tileheig
|
|||||||
BX_GUI_THIS config_hbar_id = headerbar_bitmap(BX_GUI_THIS config_bmap_id,
|
BX_GUI_THIS config_hbar_id = headerbar_bitmap(BX_GUI_THIS config_bmap_id,
|
||||||
BX_GRAVITY_RIGHT, config_handler);
|
BX_GRAVITY_RIGHT, config_handler);
|
||||||
BX_GUI_THIS set_tooltip(BX_GUI_THIS config_hbar_id, "Runtime config dialog");
|
BX_GUI_THIS set_tooltip(BX_GUI_THIS config_hbar_id, "Runtime config dialog");
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
// Fake-Restore button
|
// Fake-Restore button
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
BX_GUI_THIS restore_hbar_id = headerbar_bitmap(BX_GUI_THIS restore_bmap_id,
|
BX_GUI_THIS restore_hbar_id = headerbar_bitmap(BX_GUI_THIS restore_bmap_id,
|
||||||
@ -653,7 +653,7 @@ void bx_gui_c::save_restore_handler(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
void bx_gui_c::restore_handler(void)
|
void bx_gui_c::restore_handler(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -161,7 +161,7 @@ protected:
|
|||||||
static void copy_handler(void);
|
static void copy_handler(void);
|
||||||
static void paste_handler(void);
|
static void paste_handler(void);
|
||||||
static void snapshot_handler(void);
|
static void snapshot_handler(void);
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
static void restore_handler(void);
|
static void restore_handler(void);
|
||||||
#endif
|
#endif
|
||||||
@ -183,7 +183,7 @@ protected:
|
|||||||
unsigned copy_bmap_id, copy_hbar_id;
|
unsigned copy_bmap_id, copy_hbar_id;
|
||||||
unsigned paste_bmap_id, paste_hbar_id;
|
unsigned paste_bmap_id, paste_hbar_id;
|
||||||
unsigned snapshot_bmap_id, snapshot_hbar_id;
|
unsigned snapshot_bmap_id, snapshot_hbar_id;
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
unsigned restore_bmap_id, restore_hbar_id;
|
unsigned restore_bmap_id, restore_hbar_id;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -68,7 +68,7 @@ class bx_real_sim_c : public bx_simulator_interface_c {
|
|||||||
bx_bool wx_debug_gui;
|
bx_bool wx_debug_gui;
|
||||||
public:
|
public:
|
||||||
bx_real_sim_c();
|
bx_real_sim_c();
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
virtual ~bx_real_sim_c() {root_param = NULL;}
|
virtual ~bx_real_sim_c() {root_param = NULL;}
|
||||||
#else
|
#else
|
||||||
|
|||||||
@ -123,6 +123,7 @@
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
//DanceOS
|
||||||
#ifndef BX_SIMINTERFACE_H
|
#ifndef BX_SIMINTERFACE_H
|
||||||
# define BX_SIMINTERFACE_H 1
|
# define BX_SIMINTERFACE_H 1
|
||||||
|
|
||||||
@ -746,4 +747,5 @@ BOCHSAPI extern bx_startup_flags_t bx_startup_flags;
|
|||||||
BOCHSAPI extern bx_bool bx_user_quit;
|
BOCHSAPI extern bx_bool bx_user_quit;
|
||||||
BOCHSAPI extern Bit8u bx_cpu_count;
|
BOCHSAPI extern Bit8u bx_cpu_count;
|
||||||
|
|
||||||
|
//DanceOS
|
||||||
#endif /* BX_SIMINTERFACE_H */
|
#endif /* BX_SIMINTERFACE_H */
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
// isn't even defined in this context.
|
// isn't even defined in this context.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
//DanceOS
|
||||||
// workaround for include file ordering problem in conjunction with AspectC++
|
// workaround for include file ordering problem in conjunction with AspectC++
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define CI_PATH_LENGTH 512
|
#define CI_PATH_LENGTH 512
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
bool raus = false;
|
bool raus = false;
|
||||||
#endif
|
#endif
|
||||||
@ -424,7 +425,7 @@ int bx_config_interface(int menu)
|
|||||||
return 0;
|
return 0;
|
||||||
case BX_CI_START_SIMULATION:
|
case BX_CI_START_SIMULATION:
|
||||||
// we don't expect it to return, but if it does, quit
|
// we don't expect it to return, but if it does, quit
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
if(SIM->begin_simulation(bx_startup_flags.argc, bx_startup_flags.argv)){
|
if(SIM->begin_simulation(bx_startup_flags.argc, bx_startup_flags.argv)){
|
||||||
raus = true;
|
raus = true;
|
||||||
@ -562,7 +563,7 @@ int bx_config_interface(int menu)
|
|||||||
fprintf(stderr, "Unknown config interface menu type.\n");
|
fprintf(stderr, "Unknown config interface menu type.\n");
|
||||||
assert(menu >=0 && menu < BX_CI_N_MENUS);
|
assert(menu >=0 && menu < BX_CI_N_MENUS);
|
||||||
}
|
}
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
if(raus){
|
if(raus){
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@ -1817,7 +1817,7 @@ void bx_x_gui_c::exit(void)
|
|||||||
if (bx_x_display)
|
if (bx_x_display)
|
||||||
XCloseDisplay (bx_x_display);
|
XCloseDisplay (bx_x_display);
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
|
|
||||||
bx_bitmap_left_xorigin = 0;
|
bx_bitmap_left_xorigin = 0;
|
||||||
|
|||||||
@ -27,8 +27,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
#include "iodev/iodev.h"
|
#include "iodev/iodev.h"
|
||||||
//DanceOS Richard Hellwig
|
|
||||||
//#include "failbochs.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
@ -257,7 +255,7 @@ void print_tree(bx_param_c *node, int level)
|
|||||||
|
|
||||||
int bxmain (void) {
|
int bxmain (void) {
|
||||||
|
|
||||||
//DanceOS Sprungmarke
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
marke:
|
marke:
|
||||||
#endif
|
#endif
|
||||||
@ -304,7 +302,7 @@ marke:
|
|||||||
ci_param->set_enabled(0);
|
ci_param->set_enabled(0);
|
||||||
int status = SIM->configuration_interface(ci_name, CI_START);
|
int status = SIM->configuration_interface(ci_name, CI_START);
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
if(sal::restore_bochs_request){
|
if(sal::restore_bochs_request){
|
||||||
|
|
||||||
@ -656,8 +654,8 @@ int bx_init_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
arg++;
|
arg++;
|
||||||
}
|
}
|
||||||
#ifdef DANCEOS_RESTORE
|
//DanceOS
|
||||||
//DanceOS Richard Hellwig
|
#ifdef DANCEOS_RESTORE
|
||||||
if(sal::restore_bochs_request){
|
if(sal::restore_bochs_request){
|
||||||
SIM->get_param_bool(BXPN_RESTORE_FLAG)->set(1);
|
SIM->get_param_bool(BXPN_RESTORE_FLAG)->set(1);
|
||||||
SIM->get_param_enum(BXPN_BOCHS_START)->set(BX_QUICK_START);
|
SIM->get_param_enum(BXPN_BOCHS_START)->set(BX_QUICK_START);
|
||||||
@ -980,9 +978,10 @@ int bx_begin_simulation (int argc, char *argv[])
|
|||||||
if (bx_pc_system.kill_bochs_request){
|
if (bx_pc_system.kill_bochs_request){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
if(sal::restore_bochs_request){
|
if(sal::restore_bochs_request){
|
||||||
//DanceOS Richard Hellwig
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -1003,9 +1002,10 @@ int bx_begin_simulation (int argc, char *argv[])
|
|||||||
if (bx_pc_system.kill_bochs_request){
|
if (bx_pc_system.kill_bochs_request){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
if(sal::restore_bochs_request){
|
if(sal::restore_bochs_request){
|
||||||
//DanceOS Richard Hellwig
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -79,7 +79,7 @@ public:
|
|||||||
BX_MEM_C();
|
BX_MEM_C();
|
||||||
~BX_MEM_C();
|
~BX_MEM_C();
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
BX_MEM_SMF void new_init(void);
|
BX_MEM_SMF void new_init(void);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -47,7 +47,7 @@ BX_MEM_C::BX_MEM_C()
|
|||||||
memory_handlers = NULL;
|
memory_handlers = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
void BX_MEM_C::new_init(){
|
void BX_MEM_C::new_init(){
|
||||||
|
|
||||||
|
|||||||
@ -453,7 +453,7 @@ Bit64u bx_pc_system_c::time_usec()
|
|||||||
|
|
||||||
void bx_pc_system_c::start_timers(void) { }
|
void bx_pc_system_c::start_timers(void) { }
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
void bx_pc_system_c::delete_timers(void){
|
void bx_pc_system_c::delete_timers(void){
|
||||||
numTimers = 1 + BX_SUPPORT_APIC;
|
numTimers = 1 + BX_SUPPORT_APIC;
|
||||||
|
|||||||
@ -93,7 +93,7 @@ public:
|
|||||||
bx_bool unregisterTimer(unsigned timerID);
|
bx_bool unregisterTimer(unsigned timerID);
|
||||||
void start_timers(void);
|
void start_timers(void);
|
||||||
|
|
||||||
//DanceOS Richard Hellwig
|
//DanceOS
|
||||||
#ifdef DANCEOS_RESTORE
|
#ifdef DANCEOS_RESTORE
|
||||||
void delete_timers(void);
|
void delete_timers(void);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user