- all #warnings are now inside #ifdef __GNUC__ ... #endif
Modified Files: ltdl.c main.cc plugin.cc cpu/cpu.cc cpu/debugstuff.cc cpu/exception.cc cpu/fetchdecode64.cc cpu/init.cc cpu/paging.cc gui/siminterface.cc gui/wxmain.cc iodev/harddrv.cc
This commit is contained in:
parent
eba25386fd
commit
48acd53db4
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: cpu.cc,v 1.68 2002-10-25 11:44:34 bdenney Exp $
|
||||
// $Id: cpu.cc,v 1.69 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -847,7 +847,9 @@ BX_CPU_THIS_PTR eipPageWindowSize = 0; // Fixme
|
||||
void
|
||||
BX_CPU_C::revalidate_prefetch_q(void)
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
#warning "::revalidate_prefetch_q() is ifdef'd out."
|
||||
#endif
|
||||
bx_address eipBiased;
|
||||
|
||||
eipBiased = RIP + BX_CPU_THIS_PTR eipPageBias;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: debugstuff.cc,v 1.26 2002-10-25 11:54:42 bdenney Exp $
|
||||
// $Id: debugstuff.cc,v 1.27 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -953,7 +953,9 @@ bx_dbg_init_cpu_mem_env1(bx_dbg_callback_t *callback, int argc, char *argv[])
|
||||
UNUSED(argv);
|
||||
|
||||
#if 0
|
||||
#ifdef __GNUC__
|
||||
#warning hardcoding BX_CPU_THIS_PTR mem[0] and cpu[0]
|
||||
#endif
|
||||
callback->setphymem = BX_MEM(0)->dbg_set_mem;
|
||||
callback->getphymem = BX_MEM(0)->dbg_fetch_mem;
|
||||
callback->xlate_linear2phy = BX_CPU(0)->dbg_xlate_linear2phy;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: exception.cc,v 1.30 2002-10-25 11:44:34 bdenney Exp $
|
||||
// $Id: exception.cc,v 1.31 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -1147,7 +1147,9 @@ SYSCALL_LEGACY_MODE:
|
||||
if (BX_CPU_THIS_PTR msr.lma) {
|
||||
|
||||
RCX = RIP;
|
||||
#ifdef __GNUC__
|
||||
#warning - PRT: SYSCALL -- do we reset RF/VM before saving to R11?
|
||||
#endif
|
||||
R11 = read_eflags();
|
||||
|
||||
if (BX_CPU_THIS_PTR cpu_mode == BX_MODE_LONG_64) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: fetchdecode64.cc,v 1.25 2002-10-24 21:05:39 bdenney Exp $
|
||||
// $Id: fetchdecode64.cc,v 1.26 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -1474,7 +1474,9 @@ static BxOpcodeInfo_t BxOpcodeInfo64[512*3] = {
|
||||
/* 60 */ { 0, &BX_CPU_C::BxError },
|
||||
/* 61 */ { 0, &BX_CPU_C::BxError },
|
||||
/* 62 */ { 0, &BX_CPU_C::BxError },
|
||||
#ifdef __GNUC__
|
||||
#warning PRT: op=63 This needs checking on real hardware. Manual says 16 bit version leaves upper 48 bits unchanged
|
||||
#endif
|
||||
/* 63 */ { BxAnother, &BX_CPU_C::MOVSX_GwEw }, //
|
||||
/* 64 */ { BxPrefix | BxAnother, &BX_CPU_C::BxError }, // FS:
|
||||
/* 65 */ { BxPrefix | BxAnother, &BX_CPU_C::BxError }, // GS:
|
||||
@ -1990,7 +1992,9 @@ static BxOpcodeInfo_t BxOpcodeInfo64[512*3] = {
|
||||
/* 60 */ { 0, &BX_CPU_C::BxError },
|
||||
/* 61 */ { 0, &BX_CPU_C::BxError },
|
||||
/* 62 */ { 0, &BX_CPU_C::BxError },
|
||||
#ifdef __GNUC__
|
||||
#warning PRT: This needs checking on real hardware. Manual says 32 bit version zero extends result
|
||||
#endif
|
||||
/* 63 */ { BxAnother | BxSplitMod11b, NULL, opcodesMOV_GdEd },
|
||||
/* 64 */ { BxPrefix | BxAnother, &BX_CPU_C::BxError }, // FS:
|
||||
/* 65 */ { BxPrefix | BxAnother, &BX_CPU_C::BxError }, // GS:
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: init.cc,v 1.40 2002-10-25 11:44:35 bdenney Exp $
|
||||
// $Id: init.cc,v 1.41 2002-10-25 12:36:43 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -52,7 +52,9 @@ BX_CPU_C::BX_CPU_C()
|
||||
#if BX_WITH_WX
|
||||
|
||||
#if BX_SMP_PROCESSORS!=1
|
||||
#ifdef __GNUC__
|
||||
#warning cpu_param_handler only supports parameters for one processor.
|
||||
#endif
|
||||
// To fix this, I think I will need to change bx_param_num_c::set_handler
|
||||
// so that I pass in a void* data value. The void* will be passed to each
|
||||
// handler. In this case, I would pass a pointer to the BX_CPU_C object
|
||||
@ -166,7 +168,7 @@ cpu_param_handler (bx_param_c *param, int set, Bit64s val)
|
||||
|
||||
void BX_CPU_C::init(BX_MEM_C *addrspace)
|
||||
{
|
||||
BX_DEBUG(( "Init $Id: init.cc,v 1.40 2002-10-25 11:44:35 bdenney Exp $"));
|
||||
BX_DEBUG(( "Init $Id: init.cc,v 1.41 2002-10-25 12:36:43 bdenney Exp $"));
|
||||
// BX_CPU_C constructor
|
||||
BX_CPU_THIS_PTR set_INTR (0);
|
||||
#if BX_SUPPORT_APIC
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: paging.cc,v 1.35 2002-10-25 11:44:35 bdenney Exp $
|
||||
// $Id: paging.cc,v 1.36 2002-10-25 12:36:43 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -341,8 +341,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef _MSC_VER
|
||||
// MSC++ doesn't understand a #warning
|
||||
#ifdef __GNUC__
|
||||
#warning "Move priv_check to CPU fields, or init.cc"
|
||||
#endif
|
||||
|
||||
@ -527,7 +526,9 @@ BX_CPU_C::INVLPG(bxInstruction_c* i)
|
||||
|
||||
#if BX_SUPPORT_X86_64
|
||||
if (BX_CPU_THIS_PTR cpu_mode == BX_MODE_LONG_64) {
|
||||
#ifdef __GNUC__
|
||||
#warning PRT: check this is right. instruction is "0F 01 F8" see AMD manual.
|
||||
#endif
|
||||
if ((i->rm() == 0) && (i->nnn() == 7)) {
|
||||
BX_CPU_THIS_PTR SWAPGS(i);
|
||||
return;
|
||||
@ -996,7 +997,9 @@ BX_CPU_C::itranslate_linear(bx_address laddr, unsigned pl)
|
||||
#if BX_DEBUGGER || BX_DISASM || BX_INSTRUMENTATION || BX_GDBSTUB
|
||||
|
||||
#if BX_SUPPORT_X86_64
|
||||
#ifdef __GNUC__
|
||||
#warning "Fix dbg_xlate_linear2phy for 64-bit and new features."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: siminterface.cc,v 1.78 2002-10-25 11:44:37 bdenney Exp $
|
||||
// $Id: siminterface.cc,v 1.79 2002-10-25 12:36:43 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// See siminterface.h for description of the siminterface concept.
|
||||
@ -693,7 +693,9 @@ bx_real_sim_c::configuration_interface(const char *ignore, ci_command_t command)
|
||||
int
|
||||
bx_real_sim_c::begin_simulation (int argc, char *argv[])
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
#warning does the config interface actually need to pass these args into bx_begin_simulation?? None of them is actually doing it.
|
||||
#endif
|
||||
return bx_begin_simulation (argc, argv);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wxmain.cc,v 1.71 2002-10-25 11:44:37 bdenney Exp $
|
||||
// $Id: wxmain.cc,v 1.72 2002-10-25 12:36:43 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// wxmain.cc implements the wxWindows frame, toolbar, menus, and dialogs.
|
||||
@ -557,12 +557,16 @@ void MyFrame::OnEditBoot(wxCommandEvent& WXUNUSED(event))
|
||||
devices[bootDevices] = wxT("First floppy drive");
|
||||
dev_id[bootDevices++] = BX_BOOT_FLOPPYA;
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
#warning wxwindows interface will only allow booting from hard disk if it is on ATA0 master
|
||||
#endif
|
||||
if (ata0_mpres->get() && ata0_mtype->get() == BX_ATA_DEVICE_DISK) {
|
||||
devices[bootDevices] = wxT("First hard drive");
|
||||
dev_id[bootDevices++] = BX_BOOT_DISKC;
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
#warning wxwindows interface will only allow booting from cdrom if it is on ATA0 slave
|
||||
#endif
|
||||
if (ata0_spres->get() && ata0_stype->get() == BX_ATA_DEVICE_CDROM) {
|
||||
devices[bootDevices] = wxT("CD-ROM drive");
|
||||
dev_id[bootDevices++] = BX_BOOT_CDROM;
|
||||
@ -983,7 +987,9 @@ void MyFrame::simStatusChanged (StatusChange change, bx_bool popupNotify) {
|
||||
bool canConfigure = (change == Stop);
|
||||
menuConfiguration->Enable (ID_Config_New, canConfigure);
|
||||
menuConfiguration->Enable (ID_Config_Read, canConfigure);
|
||||
#ifdef __GNUC__
|
||||
#warning For now, leave ATA devices so that you configure them during runtime. Otherwise you cannot change the CD image at runtime.
|
||||
#endif
|
||||
//menuEdit->Enable (ID_Edit_ATA0, canConfigure);
|
||||
//menuEdit->Enable (ID_Edit_ATA1, canConfigure);
|
||||
//menuEdit->Enable (ID_Edit_ATA2, canConfigure);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: harddrv.cc,v 1.85 2002-10-25 11:44:40 bdenney Exp $
|
||||
// $Id: harddrv.cc,v 1.86 2002-10-25 12:36:44 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -45,9 +45,10 @@
|
||||
// you care about.
|
||||
#define TEST_READ_BEYOND_END 0
|
||||
#define TEST_WRITE_BEYOND_END 0
|
||||
#if TEST_READ_BEYOND_END || TEST_WRITE_BEYOND_END
|
||||
#warning BEWARE: Dangerous options are enabled in harddrv.cc
|
||||
#warning If you are not trying to provoke hard drive errors you should disable them right now.
|
||||
#ifdef __GNUC__
|
||||
# if TEST_READ_BEYOND_END || TEST_WRITE_BEYOND_END
|
||||
# warning BEWARE: Dangerous options are enabled in harddrv.cc. If you are not trying to provoke hard drive errors you should disable them right now.
|
||||
# endif
|
||||
#endif
|
||||
// end of dangerous options.
|
||||
|
||||
@ -174,7 +175,7 @@ bx_hard_drive_c::init(void)
|
||||
Bit8u channel;
|
||||
char string[5];
|
||||
|
||||
BX_DEBUG(("Init $Id: harddrv.cc,v 1.85 2002-10-25 11:44:40 bdenney Exp $"));
|
||||
BX_DEBUG(("Init $Id: harddrv.cc,v 1.86 2002-10-25 12:36:44 bdenney Exp $"));
|
||||
|
||||
for (channel=0; channel<BX_MAX_ATA_CHANNEL; channel++) {
|
||||
if (bx_options.ata[channel].Opresent->get() == 1) {
|
||||
|
10
bochs/ltdl.c
10
bochs/ltdl.c
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: ltdl.c,v 1.2 2002-10-24 21:04:34 bdenney Exp $
|
||||
// $Id: ltdl.c,v 1.3 2002-10-25 12:36:42 bdenney Exp $
|
||||
//
|
||||
// NOTE: The ltdl library comes from the Libtool package. Bochs uses
|
||||
// ltdl and libtool to build and load plugins. The libtool
|
||||
@ -101,7 +101,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
#if HAVE_ASSERT_H
|
||||
# include <assert.h>
|
||||
#else
|
||||
# warning using my own assert
|
||||
# ifdef __GNUC__
|
||||
# warning using my own assert
|
||||
# endif
|
||||
# define assert(cond) while (!(cond)) { fprintf (stderr, "Assert failed at %s:%d: '%s'\n", __FILE__, __LINE__, #cond); abort(); }
|
||||
#endif
|
||||
|
||||
@ -1969,7 +1971,9 @@ tryall_dlopen_module (handle, prefix, dirname, dlname)
|
||||
int error = 0;
|
||||
char *filename = 0;
|
||||
size_t filename_len = 0;
|
||||
#ifdef __GNUC__
|
||||
#warning dirname could be null
|
||||
#endif
|
||||
size_t dirname_len = LT_STRLEN (dirname);
|
||||
|
||||
if (dirname == NULL) {
|
||||
@ -2711,7 +2715,9 @@ try_dlopen (phandle, filename)
|
||||
{
|
||||
LTDEBUG_PRINTF(("try_dlopen opening file '%s'\n", filename));
|
||||
file = fopen (filename, LT_READTEXT_MODE);
|
||||
#ifdef __GNUC__
|
||||
#warning dir is still NULL
|
||||
#endif
|
||||
}
|
||||
|
||||
/* If we didn't find the file by now, it really isn't there. Set
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: main.cc,v 1.164 2002-10-25 11:44:33 bdenney Exp $
|
||||
// $Id: main.cc,v 1.165 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -1630,7 +1630,9 @@ bx_begin_simulation (int argc, char *argv[])
|
||||
bx_dbg_main(argc, argv);
|
||||
#else
|
||||
#if BX_PLUGINS
|
||||
#ifdef __GNUC__
|
||||
#warning bx_load_plugins doesnt do much anymore and should maybe be removed
|
||||
#endif
|
||||
bx_load_plugins ();
|
||||
#endif
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: plugin.cc,v 1.3 2002-10-25 11:44:33 bdenney Exp $
|
||||
// $Id: plugin.cc,v 1.4 2002-10-25 12:36:42 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// This file defines the plugin and plugin-device registration functions and
|
||||
@ -408,7 +408,9 @@ plugin_startup(void)
|
||||
/* Plugin system: Device registration */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning BBD: when all plugin devices are converted to the "bx_devmodel" type with virtual functions, I intend to chop this out.
|
||||
#endif
|
||||
// (and the nasty current_plugin_context hack can go too)
|
||||
|
||||
void pluginRegisterDevice(deviceInitMem_t init1, deviceInitDev_t init2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user