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