Facilitating 32 bit host build of tools

36 views
Skip to first unread message

Tommy Murphy

unread,
Oct 25, 2016, 11:08:07 AM10/25/16
to RISC-V SW Dev
Hi there

By default the sources at https:://github.com/riscv/riscv-gnu-toolchain will not build in 32 bit host mode.
The build fails on riscv-binutils-gdb/sim/riscv/sim-main.c due to the issue described here:


That post also links to a patch to allow compilation in 32 bit mode to proceed but (a) I don't know if it's completely correct and self contained (the description suggests that it may only work with specific compilation flags) and (b) I don't know if this has been submitted for inclusion in the master sources. 
Would it be possible to have this or another patch applied to enable 32 bit compilation of the tools without the need to patch locally?
Apologies but I don't know enough about the gdb/sim code to suggest a fix.

Thanks a lot

Regards
Tommy Murphy
Microsemi

Kito Cheng

unread,
Oct 26, 2016, 10:12:39 PM10/26/16
to Tommy Murphy, RISC-V SW Dev
Fix has been merged into master branch for riscv-gnu-toolchain,
and I've test on CentOS 6/i686, it's can build without any patch now :)

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/245fcc00-c012-4c2d-9439-058a7525173e%40groups.riscv.org.

Tommy Murphy

unread,
Oct 27, 2016, 5:29:28 AM10/27/16
to RISC-V SW Dev, tommy_...@hotmail.com
That's great - thanks a lot Kito. :-)

Vania Joloboff

unread,
Oct 27, 2016, 7:52:10 AM10/27/16
to sw-...@groups.riscv.org

Hi

The spec says that
"there are many possible ways to encode a NOP"

but it is not clear to me whether instructions
that are meaningless when specifying register x0 as destination
are interpreted as NOP or raise an illegal instruction exception ?

e.g. add x0, x5, x7

Does somebody know the answer ?

--
Best Regards,

Vania Joloboff
INRIA Bretagne Atlantique
Campus de Beaulieu
35042 Rennes Cedex
Tél: +33 (0)2 9984 7100
Fax: +33 (0)2 9984 7171

Richard Herveille

unread,
Oct 27, 2016, 8:04:37 AM10/27/16
to Vania Joloboff, Richard Herveille, sw-...@groups.riscv.org
Having x0 as a destination is not per sé meaningless.
It is perfectly legal to have x0 as a destination register.
Therefore those instructions are not ‘illegal’.

Richard


ROA LOGIC
Design Services and Silicon Proven IP

Richard Herveille
Managing Director
Cell +31 (6) 5207 2230




--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.

To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
Reply all
Reply to author
Forward
0 new messages