Skip to content

Commit a962441

Browse files
authored
Merge branch 'grumpycoders:main' into Breakpoints-improvements
2 parents dbe144e + faee806 commit a962441

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+248
-140
lines changed

.coderabbit.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
reviews:
2+
high_level_summary: false
3+
high_level_summary_in_walkthrough: true
4+
auto_review:
5+
ignore_title_keywords:
6+
- "[Chores]"

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ CPPFLAGS += -Ithird_party/imgui/backends
3232
CPPFLAGS += -Ithird_party/imgui/examples
3333
CPPFLAGS += -Ithird_party/imgui/misc/cpp
3434
CPPFLAGS += -Ithird_party/libelfin
35+
CPPFLAGS += -Ithird_party/llhttp
3536
CPPFLAGS += -Ithird_party/luajit/src
3637
CPPFLAGS += -Ithird_party/luv/src
3738
CPPFLAGS += -Ithird_party/luv/deps/lua-compat-5.3/c-api
39+
CPPFLAGS += -Ithird_party/magic_enum/include/magic_enum
3840
CPPFLAGS += -Ithird_party/md4c/src
41+
CPPFLAGS += -Ithird_party/multipart-parser-c
42+
CPPFLAGS += -Ithird_party/tracy/public
3943
CPPFLAGS += -Ithird_party/ucl -Ithird_party/ucl/include
4044
CPPFLAGS += -Ithird_party/uriparser/include
4145
CPPFLAGS += -Ithird_party/zep/extensions

src/cdrom/file.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919

2020
#include "cdrom/file.h"
2121

22+
#include <magic_enum_all.hpp>
23+
2224
#include "cdrom/cdriso.h"
2325
#include "iec-60908b/edcecc.h"
24-
#include "magic_enum/include/magic_enum/magic_enum_all.hpp"
2526

2627
PCSX::CDRIsoFile::CDRIsoFile(std::shared_ptr<CDRIso> iso, uint32_t lba, int32_t size, SectorMode mode)
2728
: File(RW_SEEKABLE), m_iso(iso), m_lba(lba) {

src/core/DynaRec_aa64/recompiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "fmt/format.h"
3232
#include "regAllocation.h"
3333
#include "spu/interface.h"
34-
#include "tracy/public/tracy/Tracy.hpp"
34+
#include "tracy/Tracy.hpp"
3535

3636
#define HOST_REG_CACHE_OFFSET(x) ((uintptr_t) & m_hostRegisterCache[(x)] - (uintptr_t)this)
3737
#define GPR_OFFSET(x) ((uintptr_t) & m_regs.GPR.r[(x)] - (uintptr_t)this)

src/core/DynaRec_x64/recompiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "profiler.h"
3535
#include "regAllocation.h"
3636
#include "spu/interface.h"
37-
#include "tracy/public/tracy/Tracy.hpp"
37+
#include "tracy/Tracy.hpp"
3838

3939
#define HOST_REG_CACHE_OFFSET(x) ((uintptr_t) & m_hostRegisterCache[(x)] - (uintptr_t)this)
4040
#define GPR_OFFSET(x) ((uintptr_t) & m_regs.GPR.r[(x)] - (uintptr_t)this)

src/core/OpenGL_GPU/gpu_opengl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "core/system.h"
3030
#include "fmt/format.h"
3131
#include "gui/gui.h"
32-
#include "tracy/public/tracy/Tracy.hpp"
32+
#include "tracy/Tracy.hpp"
3333

3434
std::unique_ptr<PCSX::GPU> PCSX::GPU::getOpenGL() { return std::unique_ptr<PCSX::GPU>(new PCSX::OpenGL_GPU()); }
3535

src/core/cdrom.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323

2424
#include "core/cdrom.h"
2525

26+
#include <magic_enum_all.hpp>
27+
2628
#include "cdrom/iso9660-reader.h"
2729
#include "core/debug.h"
2830
#include "core/psxdma.h"
2931
#include "core/psxemulator.h"
30-
#include "magic_enum/include/magic_enum/magic_enum_all.hpp"
3132
#include "spu/interface.h"
3233
#include "support/strings-helpers.h"
3334

src/core/display.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
1818
***************************************************************************/
1919
#include <algorithm>
20+
#include <magic_enum_all.hpp>
2021

2122
#include "core/gpu.h"
2223
#include "core/psxemulator.h"
23-
#include "magic_enum/include/magic_enum/magic_enum_all.hpp"
2424

2525
void PCSX::GPU::Display::reset() {
2626
x1 = 0x200;

src/core/disr3000a.cc

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,14 @@ declare(disBEQ) {
782782
if (_Rs_ == _Rt_) {
783783
dOpCode("b");
784784
dBranch();
785+
} else if (_Rs_ == 0) {
786+
dOpCode("beqz");
787+
GPR(_Rt_);
788+
dBranch();
789+
} else if (_Rt_ == 0) {
790+
dOpCode("beqz");
791+
GPR(_Rs_);
792+
dBranch();
785793
} else {
786794
dOpCode("beq");
787795
GPR(_Rs_);
@@ -791,10 +799,20 @@ declare(disBEQ) {
791799
}
792800
declare(disBNE) {
793801
if (delaySlotNext) *delaySlotNext = true;
794-
dOpCode("bne");
795-
GPR(_Rs_);
796-
GPR(_Rt_);
797-
dBranch();
802+
if (_Rs_ == 0) {
803+
dOpCode("bnez");
804+
GPR(_Rt_);
805+
dBranch();
806+
} else if (_Rt_ == 0) {
807+
dOpCode("bnez");
808+
GPR(_Rs_);
809+
dBranch();
810+
} else {
811+
dOpCode("bne");
812+
GPR(_Rs_);
813+
GPR(_Rt_);
814+
dBranch();
815+
}
798816
}
799817

800818
/*********************************************************

src/core/gdb-server.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121

2222
#include <assert.h>
2323

24+
#include <magic_enum_all.hpp>
25+
2426
#include "core/cdrom.h"
2527
#include "core/debug.h"
2628
#include "core/psxemulator.h"
2729
#include "core/psxmem.h"
2830
#include "core/r3000a.h"
2931
#include "core/system.h"
3032
#include "fmt/format.h"
31-
#include "magic_enum/include/magic_enum/magic_enum_all.hpp"
3233
#include "support/strings-helpers.h"
3334

3435
const char PCSX::GdbClient::toHex[] = "0123456789ABCDEF";

0 commit comments

Comments
 (0)