2015-01-04 17:36:57 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-06-22 21:37:07 +01:00
|
|
|
#include "ui_registers.h"
|
2014-04-01 03:26:50 +01:00
|
|
|
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
|
|
|
|
class QTreeWidget;
|
2015-04-30 04:26:59 +01:00
|
|
|
class EmuThread;
|
2014-04-01 03:26:50 +01:00
|
|
|
|
2014-04-18 23:30:53 +01:00
|
|
|
class RegistersWidget : public QDockWidget
|
2014-04-01 03:26:50 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-04-18 23:30:53 +01:00
|
|
|
RegistersWidget(QWidget* parent = NULL);
|
2014-04-01 03:26:50 +01:00
|
|
|
|
|
|
|
public slots:
|
2015-01-07 11:14:23 +00:00
|
|
|
void OnDebugModeEntered();
|
|
|
|
void OnDebugModeLeft();
|
2014-04-01 03:26:50 +01:00
|
|
|
|
2015-05-01 00:46:50 +01:00
|
|
|
void OnEmulationStarting(EmuThread* emu_thread);
|
|
|
|
void OnEmulationStopping();
|
2015-04-30 04:26:59 +01:00
|
|
|
|
2014-04-01 03:26:50 +01:00
|
|
|
private:
|
2015-08-07 02:36:44 +01:00
|
|
|
void CreateCPSRChildren();
|
|
|
|
void UpdateCPSRValues();
|
|
|
|
|
|
|
|
void CreateVFPSystemRegisterChildren();
|
|
|
|
void UpdateVFPSystemRegisterValues();
|
|
|
|
|
2014-11-19 09:02:05 +00:00
|
|
|
Ui::ARMRegisters cpu_regs_ui;
|
2014-04-01 03:26:50 +01:00
|
|
|
|
2014-11-19 09:02:05 +00:00
|
|
|
QTreeWidget* tree;
|
2014-11-19 08:49:13 +00:00
|
|
|
|
2015-08-07 02:36:44 +01:00
|
|
|
QTreeWidgetItem* core_registers;
|
|
|
|
QTreeWidgetItem* vfp_registers;
|
|
|
|
QTreeWidgetItem* vfp_system_registers;
|
2015-08-07 02:11:25 +01:00
|
|
|
QTreeWidgetItem* cpsr;
|
2014-04-01 03:26:50 +01:00
|
|
|
};
|