summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/registers.h
blob: 54c9a81550ab32afa034a658ea2c952eef44dd9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include <QDockWidget>
#include "ui_registers.h"

class QTreeWidget;
class QTreeWidgetItem;
class EmuThread;

class RegistersWidget : public QDockWidget {
    Q_OBJECT

public:
    RegistersWidget(QWidget* parent = nullptr);

public slots:
    void OnDebugModeEntered();
    void OnDebugModeLeft();

    void OnEmulationStarting(EmuThread* emu_thread);
    void OnEmulationStopping();

private:
    void CreateCPSRChildren();
    void UpdateCPSRValues();

    void CreateVFPSystemRegisterChildren();
    void UpdateVFPSystemRegisterValues();

    Ui::ARMRegisters cpu_regs_ui;

    QTreeWidget* tree;

    QTreeWidgetItem* core_registers;
    QTreeWidgetItem* vfp_registers;
    QTreeWidgetItem* vfp_system_registers;
    QTreeWidgetItem* cpsr;
};