diff options
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints_p.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/profiler.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/util/spinbox.cpp | 3 | ||||
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom.h | 2 | ||||
| -rw-r--r-- | src/core/arm/skyeye_common/vfp/vfp_helper.h | 3 | ||||
| -rw-r--r-- | src/core/arm/skyeye_common/vfp/vfpsingle.cpp | 72 | ||||
| -rw-r--r-- | src/core/file_sys/disk_archive.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/timer.cpp | 2 |
8 files changed, 43 insertions, 45 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints_p.h b/src/citra_qt/debugger/graphics_breakpoints_p.h index 232bfc863..34e72e859 100644 --- a/src/citra_qt/debugger/graphics_breakpoints_p.h +++ b/src/citra_qt/debugger/graphics_breakpoints_p.h | |||
| @@ -25,7 +25,7 @@ public: | |||
| 25 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 25 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; |
| 26 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; | 26 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; |
| 27 | 27 | ||
| 28 | bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); | 28 | bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override; |
| 29 | 29 | ||
| 30 | public slots: | 30 | public slots: |
| 31 | void OnBreakPointHit(Pica::DebugContext::Event event); | 31 | void OnBreakPointHit(Pica::DebugContext::Event event); |
diff --git a/src/citra_qt/debugger/profiler.h b/src/citra_qt/debugger/profiler.h index a6d87aa0f..fabf279b8 100644 --- a/src/citra_qt/debugger/profiler.h +++ b/src/citra_qt/debugger/profiler.h | |||
| @@ -18,7 +18,7 @@ class ProfilerModel : public QAbstractItemModel | |||
| 18 | public: | 18 | public: |
| 19 | ProfilerModel(QObject* parent); | 19 | ProfilerModel(QObject* parent); |
| 20 | 20 | ||
| 21 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; | 21 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; |
| 22 | QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; | 22 | QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; |
| 23 | QModelIndex parent(const QModelIndex& child) const override; | 23 | QModelIndex parent(const QModelIndex& child) const override; |
| 24 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 24 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
diff --git a/src/citra_qt/util/spinbox.cpp b/src/citra_qt/util/spinbox.cpp index 2e2076a27..de4060116 100644 --- a/src/citra_qt/util/spinbox.cpp +++ b/src/citra_qt/util/spinbox.cpp | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 29 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | 31 | ||
| 32 | #include <cstdlib> | ||
| 32 | #include <QLineEdit> | 33 | #include <QLineEdit> |
| 33 | #include <QRegExpValidator> | 34 | #include <QRegExpValidator> |
| 34 | 35 | ||
| @@ -206,7 +207,7 @@ QString CSpinBox::TextFromValue() | |||
| 206 | { | 207 | { |
| 207 | return prefix | 208 | return prefix |
| 208 | + QString(HasSign() ? ((value < 0) ? "-" : "+") : "") | 209 | + QString(HasSign() ? ((value < 0) ? "-" : "+") : "") |
| 209 | + QString("%1").arg(abs(value), num_digits, base, QLatin1Char('0')).toUpper() | 210 | + QString("%1").arg(std::abs(value), num_digits, base, QLatin1Char('0')).toUpper() |
| 210 | + suffix; | 211 | + suffix; |
| 211 | } | 212 | } |
| 212 | 213 | ||
diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.h index 822b3bbb9..2488c879c 100644 --- a/src/core/arm/dyncom/arm_dyncom.h +++ b/src/core/arm/dyncom/arm_dyncom.h | |||
| @@ -27,7 +27,7 @@ public: | |||
| 27 | 27 | ||
| 28 | void AddTicks(u64 ticks) override; | 28 | void AddTicks(u64 ticks) override; |
| 29 | 29 | ||
| 30 | void ResetContext(Core::ThreadContext& context, u32 stack_top, u32 entry_point, u32 arg); | 30 | void ResetContext(Core::ThreadContext& context, u32 stack_top, u32 entry_point, u32 arg) override; |
| 31 | void SaveContext(Core::ThreadContext& ctx) override; | 31 | void SaveContext(Core::ThreadContext& ctx) override; |
| 32 | void LoadContext(const Core::ThreadContext& ctx) override; | 32 | void LoadContext(const Core::ThreadContext& ctx) override; |
| 33 | 33 | ||
diff --git a/src/core/arm/skyeye_common/vfp/vfp_helper.h b/src/core/arm/skyeye_common/vfp/vfp_helper.h index 5d1b4e53f..6b3dae280 100644 --- a/src/core/arm/skyeye_common/vfp/vfp_helper.h +++ b/src/core/arm/skyeye_common/vfp/vfp_helper.h | |||
| @@ -36,9 +36,6 @@ | |||
| 36 | #include "common/common_types.h" | 36 | #include "common/common_types.h" |
| 37 | #include "core/arm/skyeye_common/armdefs.h" | 37 | #include "core/arm/skyeye_common/armdefs.h" |
| 38 | 38 | ||
| 39 | #define pr_info //printf | ||
| 40 | #define pr_debug //printf | ||
| 41 | |||
| 42 | #define do_div(n, base) {n/=base;} | 39 | #define do_div(n, base) {n/=base;} |
| 43 | 40 | ||
| 44 | enum : u32 { | 41 | enum : u32 { |
diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp index 8b2dfa388..a78bdc430 100644 --- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp | |||
| @@ -51,6 +51,8 @@ | |||
| 51 | * =========================================================================== | 51 | * =========================================================================== |
| 52 | */ | 52 | */ |
| 53 | 53 | ||
| 54 | #include "common/logging/log.h" | ||
| 55 | |||
| 54 | #include "core/arm/skyeye_common/vfp/vfp_helper.h" | 56 | #include "core/arm/skyeye_common/vfp/vfp_helper.h" |
| 55 | #include "core/arm/skyeye_common/vfp/asm_vfp.h" | 57 | #include "core/arm/skyeye_common/vfp/asm_vfp.h" |
| 56 | #include "core/arm/skyeye_common/vfp/vfp.h" | 58 | #include "core/arm/skyeye_common/vfp/vfp.h" |
| @@ -63,8 +65,8 @@ static struct vfp_single vfp_single_default_qnan = { | |||
| 63 | 65 | ||
| 64 | static void vfp_single_dump(const char *str, struct vfp_single *s) | 66 | static void vfp_single_dump(const char *str, struct vfp_single *s) |
| 65 | { | 67 | { |
| 66 | pr_debug("VFP: %s: sign=%d exponent=%d significand=%08x\n", | 68 | LOG_DEBUG(Core_ARM11, "%s: sign=%d exponent=%d significand=%08x", |
| 67 | str, s->sign != 0, s->exponent, s->significand); | 69 | str, s->sign != 0, s->exponent, s->significand); |
| 68 | } | 70 | } |
| 69 | 71 | ||
| 70 | static void vfp_single_normalise_denormal(struct vfp_single *vs) | 72 | static void vfp_single_normalise_denormal(struct vfp_single *vs) |
| @@ -154,7 +156,7 @@ u32 vfp_single_normaliseround(ARMul_State* state, int sd, struct vfp_single *vs, | |||
| 154 | } else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vs->sign != 0)) | 156 | } else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vs->sign != 0)) |
| 155 | incr = (1 << (VFP_SINGLE_LOW_BITS + 1)) - 1; | 157 | incr = (1 << (VFP_SINGLE_LOW_BITS + 1)) - 1; |
| 156 | 158 | ||
| 157 | pr_debug("VFP: rounding increment = 0x%08x\n", incr); | 159 | LOG_DEBUG(Core_ARM11, "rounding increment = 0x%08x", incr); |
| 158 | 160 | ||
| 159 | /* | 161 | /* |
| 160 | * Is our rounding going to overflow? | 162 | * Is our rounding going to overflow? |
| @@ -209,10 +211,8 @@ pack: | |||
| 209 | vfp_single_dump("pack: final", vs); | 211 | vfp_single_dump("pack: final", vs); |
| 210 | { | 212 | { |
| 211 | s32 d = vfp_single_pack(vs); | 213 | s32 d = vfp_single_pack(vs); |
| 212 | #if 1 | 214 | LOG_DEBUG(Core_ARM11, "%s: d(s%d)=%08x exceptions=%08x", func, |
| 213 | pr_debug("VFP: %s: d(s%d)=%08x exceptions=%08x\n", func, | 215 | sd, d, exceptions); |
| 214 | sd, d, exceptions); | ||
| 215 | #endif | ||
| 216 | vfp_put_float(state, d, sd); | 216 | vfp_put_float(state, d, sd); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| @@ -302,7 +302,7 @@ u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand) | |||
| 302 | u32 z, a; | 302 | u32 z, a; |
| 303 | 303 | ||
| 304 | if ((significand & 0xc0000000) != 0x40000000) { | 304 | if ((significand & 0xc0000000) != 0x40000000) { |
| 305 | pr_debug("VFP: estimate_sqrt: invalid significand\n"); | 305 | LOG_DEBUG(Core_ARM11, "invalid significand"); |
| 306 | } | 306 | } |
| 307 | 307 | ||
| 308 | a = significand << 1; | 308 | a = significand << 1; |
| @@ -392,7 +392,7 @@ sqrt_invalid: | |||
| 392 | term = (u64)vsd.significand * vsd.significand; | 392 | term = (u64)vsd.significand * vsd.significand; |
| 393 | rem = ((u64)vsm.significand << 32) - term; | 393 | rem = ((u64)vsm.significand << 32) - term; |
| 394 | 394 | ||
| 395 | pr_debug("VFP: term=%016llx rem=%016llx\n", term, rem); | 395 | LOG_DEBUG(Core_ARM11, "term=%016lx rem=%016lx", term, rem); |
| 396 | 396 | ||
| 397 | while (rem < 0) { | 397 | while (rem < 0) { |
| 398 | vsd.significand -= 1; | 398 | vsd.significand -= 1; |
| @@ -624,7 +624,7 @@ static u32 vfp_single_ftoui(ARMul_State* state, int sd, int unused, s32 m, u32 f | |||
| 624 | } | 624 | } |
| 625 | } | 625 | } |
| 626 | 626 | ||
| 627 | pr_debug("VFP: ftoui: d(s%d)=%08x exceptions=%08x\n", sd, d, exceptions); | 627 | LOG_DEBUG(Core_ARM11, "ftoui: d(s%d)=%08x exceptions=%08x", sd, d, exceptions); |
| 628 | 628 | ||
| 629 | vfp_put_float(state, d, sd); | 629 | vfp_put_float(state, d, sd); |
| 630 | 630 | ||
| @@ -703,7 +703,7 @@ static u32 vfp_single_ftosi(ARMul_State* state, int sd, int unused, s32 m, u32 f | |||
| 703 | } | 703 | } |
| 704 | } | 704 | } |
| 705 | 705 | ||
| 706 | pr_debug("VFP: ftosi: d(s%d)=%08x exceptions=%08x\n", sd, d, exceptions); | 706 | LOG_DEBUG(Core_ARM11, "ftosi: d(s%d)=%08x exceptions=%08x", sd, d, exceptions); |
| 707 | 707 | ||
| 708 | vfp_put_float(state, (s32)d, sd); | 708 | vfp_put_float(state, (s32)d, sd); |
| 709 | 709 | ||
| @@ -800,7 +800,7 @@ vfp_single_add(struct vfp_single *vsd, struct vfp_single *vsn, | |||
| 800 | 800 | ||
| 801 | if (vsn->significand & 0x80000000 || | 801 | if (vsn->significand & 0x80000000 || |
| 802 | vsm->significand & 0x80000000) { | 802 | vsm->significand & 0x80000000) { |
| 803 | pr_info("VFP: bad FP values in %s\n", __func__); | 803 | LOG_WARNING(Core_ARM11, "bad FP values"); |
| 804 | vfp_single_dump("VSN", vsn); | 804 | vfp_single_dump("VSN", vsn); |
| 805 | vfp_single_dump("VSM", vsm); | 805 | vfp_single_dump("VSM", vsm); |
| 806 | } | 806 | } |
| @@ -871,7 +871,7 @@ vfp_single_multiply(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_s | |||
| 871 | struct vfp_single *t = vsn; | 871 | struct vfp_single *t = vsn; |
| 872 | vsn = vsm; | 872 | vsn = vsm; |
| 873 | vsm = t; | 873 | vsm = t; |
| 874 | pr_debug("VFP: swapping M <-> N\n"); | 874 | LOG_DEBUG(Core_ARM11, "swapping M <-> N"); |
| 875 | } | 875 | } |
| 876 | 876 | ||
| 877 | vsd->sign = vsn->sign ^ vsm->sign; | 877 | vsd->sign = vsn->sign ^ vsm->sign; |
| @@ -924,7 +924,7 @@ vfp_single_multiply_accumulate(ARMul_State* state, int sd, int sn, s32 m, u32 fp | |||
| 924 | s32 v; | 924 | s32 v; |
| 925 | 925 | ||
| 926 | v = vfp_get_float(state, sn); | 926 | v = vfp_get_float(state, sn); |
| 927 | pr_debug("VFP: s%u = %08x\n", sn, v); | 927 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, v); |
| 928 | vfp_single_unpack(&vsn, v); | 928 | vfp_single_unpack(&vsn, v); |
| 929 | if (vsn.exponent == 0 && vsn.significand) | 929 | if (vsn.exponent == 0 && vsn.significand) |
| 930 | vfp_single_normalise_denormal(&vsn); | 930 | vfp_single_normalise_denormal(&vsn); |
| @@ -939,7 +939,7 @@ vfp_single_multiply_accumulate(ARMul_State* state, int sd, int sn, s32 m, u32 fp | |||
| 939 | vsp.sign = vfp_sign_negate(vsp.sign); | 939 | vsp.sign = vfp_sign_negate(vsp.sign); |
| 940 | 940 | ||
| 941 | v = vfp_get_float(state, sd); | 941 | v = vfp_get_float(state, sd); |
| 942 | pr_debug("VFP: s%u = %08x\n", sd, v); | 942 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sd, v); |
| 943 | vfp_single_unpack(&vsn, v); | 943 | vfp_single_unpack(&vsn, v); |
| 944 | if (vsn.exponent == 0 && vsn.significand != 0) | 944 | if (vsn.exponent == 0 && vsn.significand != 0) |
| 945 | vfp_single_normalise_denormal(&vsn); | 945 | vfp_single_normalise_denormal(&vsn); |
| @@ -961,7 +961,7 @@ vfp_single_multiply_accumulate(ARMul_State* state, int sd, int sn, s32 m, u32 fp | |||
| 961 | */ | 961 | */ |
| 962 | static u32 vfp_single_fmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | 962 | static u32 vfp_single_fmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) |
| 963 | { | 963 | { |
| 964 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sn, sd); | 964 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, sd); |
| 965 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, 0, "fmac"); | 965 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, 0, "fmac"); |
| 966 | } | 966 | } |
| 967 | 967 | ||
| @@ -970,7 +970,8 @@ static u32 vfp_single_fmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 970 | */ | 970 | */ |
| 971 | static u32 vfp_single_fnmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | 971 | static u32 vfp_single_fnmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) |
| 972 | { | 972 | { |
| 973 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sd, sn); | 973 | // TODO: this one has its arguments inverted, investigate. |
| 974 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sd, sn); | ||
| 974 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_MULTIPLY, "fnmac"); | 975 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_MULTIPLY, "fnmac"); |
| 975 | } | 976 | } |
| 976 | 977 | ||
| @@ -979,7 +980,7 @@ static u32 vfp_single_fnmac(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr | |||
| 979 | */ | 980 | */ |
| 980 | static u32 vfp_single_fmsc(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | 981 | static u32 vfp_single_fmsc(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) |
| 981 | { | 982 | { |
| 982 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sn, sd); | 983 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, sd); |
| 983 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_SUBTRACT, "fmsc"); | 984 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_SUBTRACT, "fmsc"); |
| 984 | } | 985 | } |
| 985 | 986 | ||
| @@ -988,7 +989,7 @@ static u32 vfp_single_fmsc(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 988 | */ | 989 | */ |
| 989 | static u32 vfp_single_fnmsc(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | 990 | static u32 vfp_single_fnmsc(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) |
| 990 | { | 991 | { |
| 991 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sn, sd); | 992 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, sd); |
| 992 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_SUBTRACT | NEG_MULTIPLY, "fnmsc"); | 993 | return vfp_single_multiply_accumulate(state, sd, sn, m, fpscr, NEG_SUBTRACT | NEG_MULTIPLY, "fnmsc"); |
| 993 | } | 994 | } |
| 994 | 995 | ||
| @@ -1001,7 +1002,7 @@ static u32 vfp_single_fmul(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 1001 | u32 exceptions; | 1002 | u32 exceptions; |
| 1002 | s32 n = vfp_get_float(state, sn); | 1003 | s32 n = vfp_get_float(state, sn); |
| 1003 | 1004 | ||
| 1004 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sn, n); | 1005 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, n); |
| 1005 | 1006 | ||
| 1006 | vfp_single_unpack(&vsn, n); | 1007 | vfp_single_unpack(&vsn, n); |
| 1007 | if (vsn.exponent == 0 && vsn.significand) | 1008 | if (vsn.exponent == 0 && vsn.significand) |
| @@ -1024,7 +1025,7 @@ static u32 vfp_single_fnmul(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr | |||
| 1024 | u32 exceptions; | 1025 | u32 exceptions; |
| 1025 | s32 n = vfp_get_float(state, sn); | 1026 | s32 n = vfp_get_float(state, sn); |
| 1026 | 1027 | ||
| 1027 | pr_debug("VFP: s%u = %08x\n", sn, n); | 1028 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, n); |
| 1028 | 1029 | ||
| 1029 | vfp_single_unpack(&vsn, n); | 1030 | vfp_single_unpack(&vsn, n); |
| 1030 | if (vsn.exponent == 0 && vsn.significand) | 1031 | if (vsn.exponent == 0 && vsn.significand) |
| @@ -1048,7 +1049,7 @@ static u32 vfp_single_fadd(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 1048 | u32 exceptions; | 1049 | u32 exceptions; |
| 1049 | s32 n = vfp_get_float(state, sn); | 1050 | s32 n = vfp_get_float(state, sn); |
| 1050 | 1051 | ||
| 1051 | pr_debug("VFP: s%u = %08x\n", sn, n); | 1052 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, n); |
| 1052 | 1053 | ||
| 1053 | /* | 1054 | /* |
| 1054 | * Unpack and normalise denormals. | 1055 | * Unpack and normalise denormals. |
| @@ -1071,7 +1072,7 @@ static u32 vfp_single_fadd(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 1071 | */ | 1072 | */ |
| 1072 | static u32 vfp_single_fsub(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | 1073 | static u32 vfp_single_fsub(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) |
| 1073 | { | 1074 | { |
| 1074 | pr_debug("In %sVFP: s%u = %08x\n", __FUNCTION__, sn, sd); | 1075 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, sd); |
| 1075 | /* | 1076 | /* |
| 1076 | * Subtraction is addition with one sign inverted. | 1077 | * Subtraction is addition with one sign inverted. |
| 1077 | */ | 1078 | */ |
| @@ -1091,7 +1092,7 @@ static u32 vfp_single_fdiv(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | |||
| 1091 | s32 n = vfp_get_float(state, sn); | 1092 | s32 n = vfp_get_float(state, sn); |
| 1092 | int tm, tn; | 1093 | int tm, tn; |
| 1093 | 1094 | ||
| 1094 | pr_debug("VFP: s%u = %08x\n", sn, n); | 1095 | LOG_DEBUG(Core_ARM11, "s%u = %08x", sn, n); |
| 1095 | 1096 | ||
| 1096 | vfp_single_unpack(&vsn, n); | 1097 | vfp_single_unpack(&vsn, n); |
| 1097 | vfp_single_unpack(&vsm, m); | 1098 | vfp_single_unpack(&vsm, m); |
| @@ -1213,7 +1214,6 @@ u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr) | |||
| 1213 | unsigned int sm = vfp_get_sm(inst); | 1214 | unsigned int sm = vfp_get_sm(inst); |
| 1214 | unsigned int vecitr, veclen, vecstride; | 1215 | unsigned int vecitr, veclen, vecstride; |
| 1215 | struct op *fop; | 1216 | struct op *fop; |
| 1216 | pr_debug("In %s\n", __FUNCTION__); | ||
| 1217 | 1217 | ||
| 1218 | vecstride = 1 + ((fpscr & FPSCR_STRIDE_MASK) == FPSCR_STRIDE_MASK); | 1218 | vecstride = 1 + ((fpscr & FPSCR_STRIDE_MASK) == FPSCR_STRIDE_MASK); |
| 1219 | 1219 | ||
| @@ -1239,11 +1239,11 @@ u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr) | |||
| 1239 | else | 1239 | else |
| 1240 | veclen = fpscr & FPSCR_LENGTH_MASK; | 1240 | veclen = fpscr & FPSCR_LENGTH_MASK; |
| 1241 | 1241 | ||
| 1242 | pr_debug("VFP: vecstride=%u veclen=%u\n", vecstride, | 1242 | LOG_DEBUG(Core_ARM11, "vecstride=%u veclen=%u", vecstride, |
| 1243 | (veclen >> FPSCR_LENGTH_BIT) + 1); | 1243 | (veclen >> FPSCR_LENGTH_BIT) + 1); |
| 1244 | 1244 | ||
| 1245 | if (!fop->fn) { | 1245 | if (!fop->fn) { |
| 1246 | printf("VFP: could not find single op %d, inst=0x%x@0x%x\n", FEXT_TO_IDX(inst), inst, state->Reg[15]); | 1246 | LOG_CRITICAL(Core_ARM11, "could not find single op %d, inst=0x%x@0x%x", FEXT_TO_IDX(inst), inst, state->Reg[15]); |
| 1247 | exit(-1); | 1247 | exit(-1); |
| 1248 | goto invalid; | 1248 | goto invalid; |
| 1249 | } | 1249 | } |
| @@ -1255,17 +1255,17 @@ u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr) | |||
| 1255 | 1255 | ||
| 1256 | type = (fop->flags & OP_DD) ? 'd' : 's'; | 1256 | type = (fop->flags & OP_DD) ? 'd' : 's'; |
| 1257 | if (op == FOP_EXT) | 1257 | if (op == FOP_EXT) |
| 1258 | pr_debug("VFP: itr%d (%c%u) = op[%u] (s%u=%08x)\n", | 1258 | LOG_DEBUG(Core_ARM11, "itr%d (%c%u) = op[%u] (s%u=%08x)", |
| 1259 | vecitr >> FPSCR_LENGTH_BIT, type, dest, sn, | 1259 | vecitr >> FPSCR_LENGTH_BIT, type, dest, sn, |
| 1260 | sm, m); | 1260 | sm, m); |
| 1261 | else | 1261 | else |
| 1262 | pr_debug("VFP: itr%d (%c%u) = (s%u) op[%u] (s%u=%08x)\n", | 1262 | LOG_DEBUG(Core_ARM11, "itr%d (%c%u) = (s%u) op[%u] (s%u=%08x)", |
| 1263 | vecitr >> FPSCR_LENGTH_BIT, type, dest, sn, | 1263 | vecitr >> FPSCR_LENGTH_BIT, type, dest, sn, |
| 1264 | FOP_TO_IDX(op), sm, m); | 1264 | FOP_TO_IDX(op), sm, m); |
| 1265 | 1265 | ||
| 1266 | except = fop->fn(state, dest, sn, m, fpscr); | 1266 | except = fop->fn(state, dest, sn, m, fpscr); |
| 1267 | pr_debug("VFP: itr%d: exceptions=%08x\n", | 1267 | LOG_DEBUG(Core_ARM11, "itr%d: exceptions=%08x", |
| 1268 | vecitr >> FPSCR_LENGTH_BIT, except); | 1268 | vecitr >> FPSCR_LENGTH_BIT, except); |
| 1269 | 1269 | ||
| 1270 | exceptions |= except; | 1270 | exceptions |= except; |
| 1271 | 1271 | ||
diff --git a/src/core/file_sys/disk_archive.h b/src/core/file_sys/disk_archive.h index dbbdced74..770bd715e 100644 --- a/src/core/file_sys/disk_archive.h +++ b/src/core/file_sys/disk_archive.h | |||
| @@ -24,7 +24,7 @@ class DiskArchive : public ArchiveBackend { | |||
| 24 | public: | 24 | public: |
| 25 | DiskArchive(const std::string& mount_point_) : mount_point(mount_point_) {} | 25 | DiskArchive(const std::string& mount_point_) : mount_point(mount_point_) {} |
| 26 | 26 | ||
| 27 | virtual std::string GetName() const { return "DiskArchive: " + mount_point; } | 27 | virtual std::string GetName() const override { return "DiskArchive: " + mount_point; } |
| 28 | 28 | ||
| 29 | std::unique_ptr<FileBackend> OpenFile(const Path& path, const Mode mode) const override; | 29 | std::unique_ptr<FileBackend> OpenFile(const Path& path, const Mode mode) const override; |
| 30 | bool DeleteFile(const Path& path) const override; | 30 | bool DeleteFile(const Path& path) const override; |
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index 610e26a3c..1ec2a4b10 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp | |||
| @@ -66,7 +66,7 @@ static void TimerCallback(u64 timer_handle, int cycles_late) { | |||
| 66 | SharedPtr<Timer> timer = timer_callback_handle_table.Get<Timer>(static_cast<Handle>(timer_handle)); | 66 | SharedPtr<Timer> timer = timer_callback_handle_table.Get<Timer>(static_cast<Handle>(timer_handle)); |
| 67 | 67 | ||
| 68 | if (timer == nullptr) { | 68 | if (timer == nullptr) { |
| 69 | LOG_CRITICAL(Kernel, "Callback fired for invalid timer %08X", timer_handle); | 69 | LOG_CRITICAL(Kernel, "Callback fired for invalid timer %08lX", timer_handle); |
| 70 | return; | 70 | return; |
| 71 | } | 71 | } |
| 72 | 72 | ||