YosysHQ / picorv32

PicoRV32 - A Size-Optimized RISC-V CPU
ISC License
3.08k stars 748 forks source link

Enable the use of 64-bit riscv tools #166

Closed tommythorn closed 2 years ago

tommythorn commented 4 years ago

Many Linux distributions now include the tools for RISC-V (for example Ubuntu 20.04 has gcc-riscv64-unknown-elf) but in order for

make TOOLCHAIN_PREFIX=riscv64-unknown-elf-

to work we need to be explicit about compiling for 32-bit.

daveshah1 commented 4 years ago

Thanks, ashamedly I've done some local patches for this but never got round to sending them upstream. Do you think you could do picosoc too?

Another note just to drop here is that if you want to use a linux variant gcc, you need --build-id=none after -Wl.

tommythorn commented 4 years ago

Thanks for the --build-id=none note. I'll certainly address that and drop a hint in the README.md. It might be reasonable also the change the default, but I'll defer that decision.

tommythorn commented 4 years ago

Ok. I added a blurb to the README.md. Please comment.

tommythorn commented 4 years ago

Ping?