Skip to content

Commit

Permalink
Enable linker relaxation so auipc,jalr pairs get mapped to jals
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX committed May 4, 2023
1 parent a8fa4ac commit d1125a6
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion soft/onchip/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ target = "riscv32i-unknown-none-elf"
[target.riscv32i-unknown-none-elf]
rustflags = [
"-Clink-arg=-T../program.lds",
"-Ctarget-feature=+m",
"-Ctarget-feature=+m,+relax",
]

[unstable]
Expand Down
8 changes: 4 additions & 4 deletions soft/onchip/calculator/calculator.output
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

((error 1) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 32027) (instructions_retired 22021)
(empty_alu_cycles 2923) (fetch_branch_target_buffer_hits 3007)
(decode_branch_mispredictions 30) (decode_jump_mispredictions 55)
(execute_branch_mispredictions 684) (execute_jump_mispredictions 272))))
((cycles_since_boot 31594) (instructions_retired 21722)
(empty_alu_cycles 2785) (fetch_branch_target_buffer_hits 3006)
(decode_branch_mispredictions 22) (decode_jump_mispredictions 117)
(execute_branch_mispredictions 669) (execute_jump_mispredictions 223))))
8 changes: 4 additions & 4 deletions soft/onchip/fibonacci/fibonacci.output
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Fibonacci of 11: 89

((error 1) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 5631) (instructions_retired 3818)
(empty_alu_cycles 688) (fetch_branch_target_buffer_hits 694)
(decode_branch_mispredictions 8) (decode_jump_mispredictions 5)
(execute_branch_mispredictions 197) (execute_jump_mispredictions 29))))
((cycles_since_boot 5444) (instructions_retired 3667)
(empty_alu_cycles 670) (fetch_branch_target_buffer_hits 696)
(decode_branch_mispredictions 7) (decode_jump_mispredictions 14)
(execute_branch_mispredictions 197) (execute_jump_mispredictions 21))))
8 changes: 4 additions & 4 deletions soft/onchip/pi/pi.output
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pi(10) = 3.1415926535897913

((error 0) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 100000) (instructions_retired 83520)
(empty_alu_cycles 10670) (fetch_branch_target_buffer_hits 12752)
(decode_branch_mispredictions 117) (decode_jump_mispredictions 177)
(execute_branch_mispredictions 2196) (execute_jump_mispredictions 1311))))
((cycles_since_boot 100000) (instructions_retired 83128)
(empty_alu_cycles 11040) (fetch_branch_target_buffer_hits 13291)
(decode_branch_mispredictions 281) (decode_jump_mispredictions 297)
(execute_branch_mispredictions 2392) (execute_jump_mispredictions 1123))))
8 changes: 4 additions & 4 deletions soft/onchip/rng/rng.output
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

((error 1) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 205928) (instructions_retired 124089)
(empty_alu_cycles 15454) (fetch_branch_target_buffer_hits 18596)
(decode_branch_mispredictions 213) (decode_jump_mispredictions 117)
(execute_branch_mispredictions 3447) (execute_jump_mispredictions 1630))))
((cycles_since_boot 202800) (instructions_retired 121778)
(empty_alu_cycles 14528) (fetch_branch_target_buffer_hits 18893)
(decode_branch_mispredictions 212) (decode_jump_mispredictions 35)
(execute_branch_mispredictions 3348) (execute_jump_mispredictions 1415))))
8 changes: 4 additions & 4 deletions soft/onchip/sort/sort.output
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

((error 1) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 9325) (instructions_retired 5852)
(empty_alu_cycles 919) (fetch_branch_target_buffer_hits 816)
(decode_branch_mispredictions 21) (decode_jump_mispredictions 29)
(execute_branch_mispredictions 224) (execute_jump_mispredictions 72))))
((cycles_since_boot 9240) (instructions_retired 5785)
(empty_alu_cycles 908) (fetch_branch_target_buffer_hits 822)
(decode_branch_mispredictions 21) (decode_jump_mispredictions 42)
(execute_branch_mispredictions 224) (execute_jump_mispredictions 64))))
2 changes: 1 addition & 1 deletion soft/onchip/wc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use core::{mem::MaybeUninit, str::from_utf8};

use slib::{dbg, println, stdio::read_byte};
use slib::{println, stdio::read_byte};

#[cfg_attr(not(test), export_name = "_start")]
#[cfg_attr(not(test), link_section = ".start")]
Expand Down
8 changes: 4 additions & 4 deletions soft/onchip/wc/wc.output
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WordsCount { words: 184, characters: 1132, whitespaces: 186, cjk: 0 }

((error 1) (uart ((write_data 0) (write_ready 0) (read_ready 0)))
(counters
((cycles_since_boot 496754) (instructions_retired 302038)
(empty_alu_cycles 95645) (fetch_branch_target_buffer_hits 101070)
(decode_branch_mispredictions 88) (decode_jump_mispredictions 23)
(execute_branch_mispredictions 31810) (execute_jump_mispredictions 56))))
((cycles_since_boot 496686) (instructions_retired 302016)
(empty_alu_cycles 95618) (fetch_branch_target_buffer_hits 101069)
(decode_branch_mispredictions 88) (decode_jump_mispredictions 37)
(execute_branch_mispredictions 31810) (execute_jump_mispredictions 43))))

0 comments on commit d1125a6

Please sign in to comment.