aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/m68k-semi.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/m68k-semi.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/m68k-semi.c')
-rw-r--r--target/m68k/m68k-semi.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/target/m68k/m68k-semi.c b/target/m68k/m68k-semi.c
index f97580af83..01627b42c9 100644
--- a/target/m68k/m68k-semi.c
+++ b/target/m68k/m68k-semi.c
@@ -130,7 +130,8 @@ static void m68k_semi_return_u32(CPUM68KState *env, uint32_t ret, uint32_t err)
target_ulong args = env->dregs[1];
if (put_user_u32(ret, args) ||
put_user_u32(err, args + 4)) {
- /* The m68k semihosting ABI does not provide any way to report this
+ /*
+ * The m68k semihosting ABI does not provide any way to report this
* error to the guest, so the best we can do is log it in qemu.
* It is always a guest error not to pass us a valid argument block.
*/
@@ -159,8 +160,10 @@ static void m68k_semi_cb(CPUState *cs, target_ulong ret, target_ulong err)
CPUM68KState *env = &cpu->env;
if (m68k_semi_is_fseek) {
- /* FIXME: We've already lost the high bits of the fseek
- return value. */
+ /*
+ * FIXME: We've already lost the high bits of the fseek
+ * return value.
+ */
m68k_semi_return_u64(env, ret, err);
m68k_semi_is_fseek = 0;
} else {
@@ -168,7 +171,8 @@ static void m68k_semi_cb(CPUState *cs, target_ulong ret, target_ulong err)
}
}
-/* Read the input value from the argument block; fail the semihosting
+/*
+ * Read the input value from the argument block; fail the semihosting
* call if the memory read fails.
*/
#define GET_ARG(n) do { \
@@ -440,14 +444,18 @@ void do_m68k_semihosting(CPUM68KState *env, int nr)
}
ts->heap_limit = base + size;
}
- /* This call may happen before we have writable memory, so return
- values directly in registers. */
+ /*
+ * This call may happen before we have writable memory, so return
+ * values directly in registers.
+ */
env->dregs[1] = ts->heap_limit;
env->aregs[7] = ts->stack_base;
}
#else
- /* FIXME: This is wrong for boards where RAM does not start at
- address zero. */
+ /*
+ * FIXME: This is wrong for boards where RAM does not start at
+ * address zero.
+ */
env->dregs[1] = ram_size;
env->aregs[7] = ram_size;
#endif