Skip to content

Commit

Permalink
target-mips: Clean up mips_cpu_map_tc() documentation
Browse files Browse the repository at this point in the history
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 <afaerber@suse.de>
Reviewed-by: Eric Johnson <ericj@mips.com>
  • Loading branch information
afaerber committed Jan 15, 2013
1 parent ce3960e commit 66afd1a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions target-mips/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66afd1a

Please sign in to comment.