arm: use -march when compiling m5op_arm.S
Review Request #1963 - Created Aug. 6, 2013 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9818:42d960aece45 --------------------------- arm: use -march when compiling m5op_arm.S Using arm-linux-gnueabi-gcc 4.7.3-1ubuntu1 on Ubuntu 13.04 to compiled the m5 binary yields the error: m5op_arm.S: Assembler messages: m5op_arm.S:85: Error: selected processor does not support ARM mode `bxj lr' For each of of the SIMPLE_OPs. Apparently, this compiler doesn't like the interworking of these code types for the default arch. Adding -march=armv7-a makes it compile. Another alternative that I found to work is replacing the bxj lr instruction with mov pc, lr, but I don't know how that affects the KVM stuff and if bxj is needed.
Posted (Aug. 6, 2013, 11:56 a.m.)
Hi Tony, Thanks for the patch. I ran into an issue where the bxj broke running on some systems (I think with thumb), so I've actually got a patch that reverts it I was thinking about posting. I don't know if you're run into this problem or it was something I did. Anyway, I'm happy with this change, but I just wanted to know if the resulting code was working for you even with it. Ali
-
util/m5/Makefile.arm (Diff revision 1) -
extra white space
Ship It!
Ship It!
