2009-06-18 21:57:37 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef CPU_STATE_H
|
|
|
|
#define CPU_STATE_H
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
|
|
|
#include <Referenceable.h>
|
2009-06-20 03:00:25 +04:00
|
|
|
#include <Variant.h>
|
2009-06-19 04:05:45 +04:00
|
|
|
|
2009-06-30 02:38:15 +04:00
|
|
|
#include "Types.h"
|
2009-06-20 21:20:49 +04:00
|
|
|
|
2009-06-19 04:05:45 +04:00
|
|
|
|
|
|
|
class Register;
|
|
|
|
|
2009-06-18 21:57:37 +04:00
|
|
|
|
|
|
|
class CpuState : public Referenceable {
|
|
|
|
public:
|
|
|
|
virtual ~CpuState();
|
2009-06-19 04:05:45 +04:00
|
|
|
|
2009-06-20 21:20:49 +04:00
|
|
|
virtual target_addr_t InstructionPointer() const = 0;
|
2009-06-19 04:05:45 +04:00
|
|
|
virtual bool GetRegisterValue(const Register* reg,
|
2009-06-20 03:00:25 +04:00
|
|
|
BVariant& _value) = 0;
|
2009-06-18 21:57:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CPU_STATE_H
|