[PATCH v7 15/17] hw/sd/sdcard: Correctly display the command name in trace events

2020-06-30 Thread Philippe Mathieu-Daudé
Some ACMD were incorrectly displayed. Fix by remembering if we are processing a ACMD (with current_cmd_is_acmd) and add the sd_current_cmd_name() helper, which display to correct name regardless it is a CMD or ACMD. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 17 ++--- 1 f

Re: [PATCH v7 15/17] hw/sd/sdcard: Correctly display the command name in trace events

2020-07-03 Thread Peter Maydell
On Tue, 30 Jun 2020 at 14:39, Philippe Mathieu-Daudé wrote: > > Some ACMD were incorrectly displayed. Fix by remembering if we > are processing a ACMD (with current_cmd_is_acmd) and add the > sd_current_cmd_name() helper, which display to correct name > regardless it is a CMD or ACMD. > > Signed-o

Re: [PATCH v7 15/17] hw/sd/sdcard: Correctly display the command name in trace events

2020-07-03 Thread Philippe Mathieu-Daudé
On 7/3/20 3:28 PM, Peter Maydell wrote: > On Tue, 30 Jun 2020 at 14:39, Philippe Mathieu-Daudé wrote: >> >> Some ACMD were incorrectly displayed. Fix by remembering if we >> are processing a ACMD (with current_cmd_is_acmd) and add the >> sd_current_cmd_name() helper, which display to correct name