qemu: configuration-related fixes

+ Make it compile again.  Why was qemu/lol.h ever committed?

Change-Id: I398d3b9821072ca104630104270df4de2b91464a
This commit is contained in:
Horst Schirmeier
2018-05-03 14:17:08 +02:00
parent 4a068792e8
commit f9ed535c4a
4 changed files with 9 additions and 6 deletions

View File

@ -10,7 +10,11 @@
#error Active config currently not supported!
#endif
#elif defined BUILD_QEMU
#include "qemu/QEMUConfig.hpp"
#if defined BUILD_X86
#include "qemu/QEMUx86CPU.hpp"
#else
#error Active config currently not supported!
#endif
#elif defined BUILD_T32
#include "t32/T32Config.hpp"
#if defined BUILD_ARM

View File

@ -22,7 +22,7 @@ class TimerListener;
*/
class QEMUController : public SimulatorController {
public:
CPUX86State *m_cpuenv;
CPUX86State *m_cpu0env;
// Initialize the controller.
QEMUController();
@ -60,7 +60,7 @@ public:
*/
void reboot() {}
/* internal, QEMU-specific stuff */
void setCPUEnv(struct CPUX86State *env) { m_cpuenv = env; }
void setCPUEnv(struct CPUX86State *env) { m_cpu0env = env; }
};
} // end-of-namespace: fail

View File

@ -41,7 +41,7 @@ aspect QEMUListener
bool onAddition()
{
//std::cout << "QEMUMemWriteListener::onAddition" << std::endl;
if (failqemu_add_watchpoint(simulator.m_cpuenv, m_WatchAddr, m_WatchWidth, 1) != 0) {
if (failqemu_add_watchpoint(simulator.m_cpu0env, m_WatchAddr, m_WatchWidth, 1) != 0) {
std::cout << "adding watchpoint failed!" << std::endl;
return false;
}
@ -51,7 +51,7 @@ aspect QEMUListener
void onDeletion()
{
//std::cout << "QEMUMemWriteListener::onDeletion" << std::endl;
failqemu_remove_watchpoint(simulator.m_cpuenv, m_WatchAddr, m_WatchWidth, 1);
failqemu_remove_watchpoint(simulator.m_cpu0env, m_WatchAddr, m_WatchWidth, 1);
}
};
};

View File

@ -1 +0,0 @@
#error YO DAWG