[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/20] target-mips: Clean up mips_cpu_map_tc() docum
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 02/20] target-mips: Clean up mips_cpu_map_tc() documentation |
Date: |
Tue, 15 Jan 2013 10:27:20 +0100 |
This function will be touched again soon, so a good understanding of env
vs. other helps. Adopt gtk-doc style.
Signed-off-by: Andreas Färber <address@hidden>
Reviewed-by: Eric Johnson <address@hidden>
---
target-mips/op_helper.c | 14 +++++++++-----
1 Datei geändert, 9 Zeilen hinzugefügt(+), 5 Zeilen entfernt(-)
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index fb63d9e..1816a0e 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -572,11 +572,15 @@ static inline void mips_tc_sleep(MIPSCPU *cpu, int tc)
}
}
-/* tc should point to an int with the value of the global TC index.
- This function will transform it into a local index within the
- returned CPUMIPSState.
-
- FIXME: This code assumes that all VPEs have the same number of TCs,
+/**
+ * mips_cpu_map_tc:
+ * @env: CPU from which mapping is performed.
+ * @tc: Should point to an int with the value of the global TC index.
+ *
+ * This function will transform @tc into a local index within the
+ * returned #CPUMIPSState.
+ */
+/* FIXME: This code assumes that all VPEs have the same number of TCs,
which depends on runtime setup. Can probably be fixed by
walking the list of CPUMIPSStates. */
static CPUMIPSState *mips_cpu_map_tc(CPUMIPSState *env, int *tc)
--
1.7.10.4
- [Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-15, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 01/20] cpu: Move nr_{cores, threads} fields to CPUState, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 02/20] target-mips: Clean up mips_cpu_map_tc() documentation,
Andreas Färber <=
- [Qemu-devel] [PATCH 03/20] cpu: Move numa_node field to CPUState, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 05/20] kvm: Pass CPUState to kvm_init_vcpu(), Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 06/20] xen: Simplify halting of first CPU, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 07/20] exec: Return CPUState from qemu_get_cpu(), Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 08/20] kvm: Add fake KVM constants to avoid #ifdefs on KVM-specific code, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 11/20] target-i386: kvm_check_features_against_host(): Use feature_word_info, Andreas Färber, 2013/01/15
- [Qemu-devel] [PATCH 13/20] target-i386: check/enforce: Check all feature words, Andreas Färber, 2013/01/15