Skip to content

Commit d88b968

Browse files
mingqiangchilijinxia
authored andcommitted
hv: Remove nested check when dump exception
removed unnecessary nested check when dump exception Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 8384ed2 commit d88b968

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

hypervisor/debug/dump.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,6 @@ void __assert(uint32_t line, const char *file, char *txt)
296296
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
297297
{
298298
const char *name = "Not defined";
299-
static int nested = 1;
300-
301-
/* avoid endless loop, only dump the first exception */
302-
if (nested++ > 1)
303-
return;
304299

305300
if (ctx->vector < 0x20)
306301
name = excp_names[ctx->vector];

0 commit comments

Comments
 (0)