Skip to content

Commit

Permalink
Print errmsg when arm64 cpu detection got invalid result
Browse files Browse the repository at this point in the history
  • Loading branch information
sklam committed Jul 2, 2024
1 parent af7606b commit c442847
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pixie/targets/arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ def cpu_release_order(*args):
bb_default = builder.append_basic_block()
swt = builder.switch(cpu_sel, bb_default)
with builder.goto_block(bb_default):
self.debug_print(builder, '[selector] unknown cpu\n')
message = "CPU detection returned invalid result cpu_sel=%d\n"
error_message = self._ctx.insert_const_string(
builder.module, message)
c.stdio.printf(builder, error_message, cpu_sel)
# call sigabrt.
self.debug_print(builder, "calling exit\n")
c.stdlib.exit(builder, c.sysexits.EX_SOFTWARE)
Expand Down

0 comments on commit c442847

Please sign in to comment.