diff options
| author | David Rubin <daviru007@icloud.com> | 2024-07-05 03:49:09 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-07-26 04:05:39 -0700 |
| commit | 8d30fc45c424ed1aaf9067436a64b0744619c250 (patch) | |
| tree | 69d6d86af25281f7d999990629305da76ff9913b /lib/std/builtin.zig | |
| parent | 9766b68c475438e24885dd75cf137d51e72ccfa3 (diff) | |
| download | zig-8d30fc45c424ed1aaf9067436a64b0744619c250.tar.gz zig-8d30fc45c424ed1aaf9067436a64b0744619c250.zip | |
riscv: implement more operators
we can run `std.debug.print` now, with both run-time strings and integers!
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 0ef5cffd24..a600f055df 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -775,14 +775,7 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr } if (builtin.zig_backend == .stage2_riscv64) { - asm volatile ("ecall" - : - : [number] "{a7}" (64), - [arg1] "{a0}" (1), - [arg2] "{a1}" (@intFromPtr(msg.ptr)), - [arg3] "{a2}" (msg.len), - : "memory" - ); + std.debug.print("panic: {s}\n", .{msg}); std.posix.exit(127); } |
