rv64: Return bounded code-generation failures
106262886071c48b393eea681d0a0509a89c94b80f92c847b8b2532470555af1
Assisted-by: Codex:gpt-6
1 parent
1bb6778b
test/native/build.rad
+1 -1
| 19 | 19 | /// Compile data accesses and conditional finish writes into a native image. |
|
| 20 | 20 | @default unsafe fn main(env: *sys::Env) -> i32 { |
|
| 21 | 21 | assert env.args.len == 2; |
|
| 22 | 22 | let mut arena = alloc::new(&mut MEMORY[..]); |
|
| 23 | 23 | let mut scratch = alloc::new(&mut SCRATCH[..]); |
|
| 24 | - | let mut generator = rv64::beginProgram(rv64::ProgramOptions { |
|
| 24 | + | let mut generator = try! rv64::beginProgram(rv64::ProgramOptions { |
|
| 25 | 25 | entryPatch: rv64::EntryPatch::None, debug: false, |
|
| 26 | 26 | placement: image::Placement::Physical { |
|
| 27 | 27 | code: 0x80010000, roData: 0x80018000, rwData: 0x80020000, entry: 0x80010000, |
|
| 28 | 28 | }, |
|
| 29 | 29 | }, &mut arena); |