> -----Original Message-----
> From: Matheus Tavares Bernardino <quic_mathb...@quicinc.com>
> Sent: Thursday, May 4, 2023 1:53 PM
> To: qemu-devel@nongnu.org
> Cc: Brian Cain <bc...@quicinc.com>; Taylor Simpson
> <tsimp...@quicinc.com>
> Subject: [PATCH 1/2] Hexagon: list available CPUs with `-cpu help`
> 
> Currently, qemu-hexagon only models the v67 cpu. Nonetheless if we try to
> get this information with `-cpu help`, qemu just exists with an error code and
> no output. Let's correct that.
> 
> The code is basically a copy from target/alpha/cpu.h, but we strip the "-
> hexagon-cpu" suffix before printing. This is to avoid confusing situations 
> like
> the following:
> 
>     $ qemu-hexagon -cpu help
> 
>     Available CPUs:
>       v67-hexagon-cpu
> 
>     $ qemu-hexagon -cpu v67-hexagon-cpu ./prog
> 
>     qemu-hexagon: unable to find CPU model 'v67-hexagon-cpu'
> 
> Signed-off-by: Matheus Tavares Bernardino <quic_mathb...@quicinc.com>
> ---
>  target/hexagon/cpu.h |  3 +++
>  target/hexagon/cpu.c | 20 ++++++++++++++++++++
>  2 files changed, 23 insertions(+)

Reviewed-by: Taylor Simpson <tsimp...@quicinc.com>
Tested-by: Taylor Simpson <tsimp...@quicinc.com>


Reply via email to