summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
m---------externals/lz40
-rw-r--r--src/common/assert.h2
-rw-r--r--src/core/memory.cpp8
4 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 945278f88..6fc85bc37 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -238,8 +238,8 @@ endif()
238 238
239if (UNICORN_FOUND) 239if (UNICORN_FOUND)
240 add_library(unicorn INTERFACE) 240 add_library(unicorn INTERFACE)
241 target_link_libraries(unicorn INTERFACE "${UNICORN_LIBRARY}") 241 target_link_libraries(unicorn INTERFACE "${LIBUNICORN_LIBRARY}")
242 target_include_directories(unicorn INTERFACE "${UNICORN_INCLUDE_DIR}") 242 target_include_directories(unicorn INTERFACE "${LIBUNICORN_INCLUDE_DIR}")
243endif() 243endif()
244 244
245if (ENABLE_QT) 245if (ENABLE_QT)
diff --git a/externals/lz4 b/externals/lz4
Subproject c10863b98e1503af90616ae99725ecd120265df Subproject 4db65c1d99280a757823914efaa96d2e87f4184
diff --git a/src/common/assert.h b/src/common/assert.h
index 04e80c87a..655446f34 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -53,4 +53,4 @@ __declspec(noinline, noreturn)
53#endif 53#endif
54 54
55#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!") 55#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
56#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) 56#define UNIMPLEMENTED_MSG(...) ASSERT_MSG(false, __VA_ARGS__)
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 93ffe9938..01ec231f6 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -487,7 +487,7 @@ void ReadBlock(const Kernel::Process& process, const VAddr src_addr, void* dest_
487 size_t page_offset = src_addr & PAGE_MASK; 487 size_t page_offset = src_addr & PAGE_MASK;
488 488
489 while (remaining_size > 0) { 489 while (remaining_size > 0) {
490 const size_t copy_amount = std::min(PAGE_SIZE - page_offset, remaining_size); 490 const size_t copy_amount = std::min<size_t>(PAGE_SIZE - page_offset, remaining_size);
491 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset); 491 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset);
492 492
493 switch (page_table.attributes[page_index]) { 493 switch (page_table.attributes[page_index]) {
@@ -563,7 +563,7 @@ void WriteBlock(const Kernel::Process& process, const VAddr dest_addr, const voi
563 size_t page_offset = dest_addr & PAGE_MASK; 563 size_t page_offset = dest_addr & PAGE_MASK;
564 564
565 while (remaining_size > 0) { 565 while (remaining_size > 0) {
566 const size_t copy_amount = std::min(PAGE_SIZE - page_offset, remaining_size); 566 const size_t copy_amount = std::min<size_t>(PAGE_SIZE - page_offset, remaining_size);
567 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset); 567 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset);
568 568
569 switch (page_table.attributes[page_index]) { 569 switch (page_table.attributes[page_index]) {
@@ -623,7 +623,7 @@ void ZeroBlock(const VAddr dest_addr, const size_t size) {
623 static const std::array<u8, PAGE_SIZE> zeros = {}; 623 static const std::array<u8, PAGE_SIZE> zeros = {};
624 624
625 while (remaining_size > 0) { 625 while (remaining_size > 0) {
626 const size_t copy_amount = std::min(PAGE_SIZE - page_offset, remaining_size); 626 const size_t copy_amount = std::min<size_t>(PAGE_SIZE - page_offset, remaining_size);
627 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset); 627 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset);
628 628
629 switch (current_page_table->attributes[page_index]) { 629 switch (current_page_table->attributes[page_index]) {
@@ -674,7 +674,7 @@ void CopyBlock(VAddr dest_addr, VAddr src_addr, const size_t size) {
674 size_t page_offset = src_addr & PAGE_MASK; 674 size_t page_offset = src_addr & PAGE_MASK;
675 675
676 while (remaining_size > 0) { 676 while (remaining_size > 0) {
677 const size_t copy_amount = std::min(PAGE_SIZE - page_offset, remaining_size); 677 const size_t copy_amount = std::min<size_t>(PAGE_SIZE - page_offset, remaining_size);
678 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset); 678 const VAddr current_vaddr = static_cast<VAddr>((page_index << PAGE_BITS) + page_offset);
679 679
680 switch (current_page_table->attributes[page_index]) { 680 switch (current_page_table->attributes[page_index]) {