aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/helper.c
diff options
context:
space:
mode:
authorLucien Murray-Pitts <lucienmp.qemu@gmail.com>2019-06-07 08:41:25 +0900
committerLaurent Vivier <laurent@vivier.eu>2019-06-26 17:14:39 +0200
commit808d77bc5f878a666035d478480b8ed229bd49fe (patch)
tree213be732aefeb00801111d08d5477e5f4f3fe552 /target/m68k/helper.c
parentbf1fa6912dd44463b00ca1c4f006a807b2940466 (diff)
m68k comments break patch submission due to being incorrectly formatted
Altering all comments in target/m68k to match Qemu coding styles so that future patches wont fail due to style breaches. Signed-off-by: Lucien Murray-Pitts <lucienmp.qemu@gmail.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190606234125.GA4830@localhost.localdomain> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/m68k/helper.c')
-rw-r--r--target/m68k/helper.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/target/m68k/helper.c b/target/m68k/helper.c
index 31aacb51c6..ae766a6cb0 100644
--- a/target/m68k/helper.c
+++ b/target/m68k/helper.c
@@ -965,9 +965,11 @@ void HELPER(set_sr)(CPUM68KState *env, uint32_t val)
}
/* MAC unit. */
-/* FIXME: The MAC unit implementation is a bit of a mess. Some helpers
- take values, others take register numbers and manipulate the contents
- in-place. */
+/*
+ * FIXME: The MAC unit implementation is a bit of a mess. Some helpers
+ * take values, others take register numbers and manipulate the contents
+ * in-place.
+ */
void HELPER(mac_move)(CPUM68KState *env, uint32_t dest, uint32_t src)
{
uint32_t mask;
@@ -1047,9 +1049,11 @@ void HELPER(macsats)(CPUM68KState *env, uint32_t acc)
if (env->macsr & MACSR_V) {
env->macsr |= MACSR_PAV0 << acc;
if (env->macsr & MACSR_OMC) {
- /* The result is saturated to 32 bits, despite overflow occurring
- at 48 bits. Seems weird, but that's what the hardware docs
- say. */
+ /*
+ * The result is saturated to 32 bits, despite overflow occurring
+ * at 48 bits. Seems weird, but that's what the hardware docs
+ * say.
+ */
result = (result >> 63) ^ 0x7fffffff;
}
}