Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(160)

Issue 6442109: code review 6442109: runtime: arm: abort if hardware floating point missing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by dave
Modified:
12 years, 7 months ago
Reviewers:
CC:
rsc, minux1, golang-dev
Visibility:
Public.

Description

runtime: arm: abort if hardware floating point missing Fixes issue 3911. Requires CL 6449127. dfc@qnap:~$ ./runtime.test runtime: this CPU has no floating point hardware, so it cannot run this GOARM=7 binary. Recompile using GOARM=5.

Patch Set 1 #

Patch Set 2 : diff -r 62f087306b18 https://code.google.com/p/go #

Patch Set 3 : diff -r 62f087306b18 https://code.google.com/p/go #

Patch Set 4 : diff -r 62f087306b18 https://code.google.com/p/go #

Patch Set 5 : diff -r 62f087306b18 https://code.google.com/p/go #

Patch Set 6 : diff -r 62f087306b18 https://code.google.com/p/go #

Total comments: 4

Patch Set 7 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 8 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 9 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 10 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 11 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Total comments: 1

Patch Set 12 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 13 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Patch Set 14 : diff -r 79c69dfde8dc https://code.google.com/p/go #

Total comments: 1

Patch Set 15 : diff -r 91c1c2d6e2ff https://code.google.com/p/go #

Patch Set 16 : diff -r 91c1c2d6e2ff https://code.google.com/p/go #

Patch Set 17 : diff -r 41976e2fec9b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M src/pkg/runtime/asm_arm.s View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/signal_linux_arm.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 20
dave_cheney.net
Hello rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 8 months ago (2012-08-10 12:25:28 UTC) #1
rsc
http://codereview.appspot.com/6442109/diff/9001/src/pkg/runtime/runtime.c File src/pkg/runtime/runtime.c (right): http://codereview.appspot.com/6442109/diff/9001/src/pkg/runtime/runtime.c#newcode214 src/pkg/runtime/runtime.c:214: if(runtime·armArch < runtime·goarm) { Where is armArch being set? ...
12 years, 8 months ago (2012-08-30 14:46:44 UTC) #2
minux1
On 2012/08/30 14:46:44, rsc wrote: http://codereview.appspot.com/6442109/diff/9001/src/pkg/runtime/runtime.c#newcode214 > src/pkg/runtime/runtime.c:214: if(runtime·armArch < runtime·goarm) { > Where is ...
12 years, 8 months ago (2012-08-30 15:12:55 UTC) #3
dave_cheney.net
Thank you for your comments, PTAL. http://codereview.appspot.com/6442109/diff/9001/src/pkg/runtime/runtime.c File src/pkg/runtime/runtime.c (right): http://codereview.appspot.com/6442109/diff/9001/src/pkg/runtime/runtime.c#newcode214 src/pkg/runtime/runtime.c:214: if(runtime·armArch < runtime·goarm) ...
12 years, 8 months ago (2012-08-31 01:40:05 UTC) #4
minux1
sorry, but i tend to oppose this approach now. as elaborated here: https://groups.google.com/d/topic/golang-dev/WqJuNnZr8pw/discussion i think ...
12 years, 8 months ago (2012-09-01 08:08:35 UTC) #5
dave_cheney.net
In the spirit of supporting the Pi by Go 1.1, I would support removing vmov ...
12 years, 8 months ago (2012-09-01 08:38:14 UTC) #6
minux1
On Sat, Sep 1, 2012 at 4:38 PM, Dave Cheney <dave@cheney.net> wrote: > In the ...
12 years, 8 months ago (2012-09-01 08:57:40 UTC) #7
dave_cheney.net
SGTM. On 01/09/2012, at 18:57, minux <minux.ma@gmail.com> wrote: > > On Sat, Sep 1, 2012 ...
12 years, 8 months ago (2012-09-01 09:12:58 UTC) #8
rsc
I would still like to see a runtime check that can print: runtime: cannot run ...
12 years, 8 months ago (2012-09-01 14:00:59 UTC) #9
dave_cheney.net
rsc: I have updated the error message in runtime.c, PTAL all: I think we can ...
12 years, 8 months ago (2012-09-01 14:05:05 UTC) #10
minux1
i need to do some experiments regarding hard floating point and kernel software floating point ...
12 years, 8 months ago (2012-09-02 19:19:24 UTC) #11
minux1
On Mon, Sep 3, 2012 at 3:19 AM, <minux.ma@gmail.com> wrote: > i need to do ...
12 years, 8 months ago (2012-09-03 16:52:24 UTC) #12
dave_cheney.net
Hello rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2012-09-04 20:43:30 UTC) #13
dave_cheney.net
PTAL. I have updated the test logic to only consider hardware floating point and added ...
12 years, 7 months ago (2012-09-04 20:45:00 UTC) #14
dave_cheney.net
I just managed hit this myself while testing this CL. pkg/go/scanner pkg/go/ast pkg/go/parser pkg/os/exec pkg/net/url ...
12 years, 7 months ago (2012-09-04 23:37:04 UTC) #15
minux1
LGTM. with this kind of test in place, we can go on to introduce GOARM=7 ...
12 years, 7 months ago (2012-09-05 12:02:09 UTC) #16
dave_cheney.net
ping. Would anyone else like to review this proposal ?
12 years, 7 months ago (2012-09-07 02:09:23 UTC) #17
rsc
LGTM http://codereview.appspot.com/6442109/diff/19006/src/pkg/runtime/signal_linux_arm.c File src/pkg/runtime/signal_linux_arm.c (right): http://codereview.appspot.com/6442109/diff/19006/src/pkg/runtime/signal_linux_arm.c#newcode160 src/pkg/runtime/signal_linux_arm.c:160: runtime·printf("runtime: this binary requires hardware floating point support. ...
12 years, 7 months ago (2012-09-07 02:28:26 UTC) #18
dave_cheney.net
Thank you. I'll make that change before submitting. On Fri, Sep 7, 2012 at 12:28 ...
12 years, 7 months ago (2012-09-07 02:35:41 UTC) #19
dave_cheney.net
12 years, 7 months ago (2012-09-07 04:26:55 UTC) #20
*** Submitted as http://code.google.com/p/go/source/detail?r=e4b20018f797 ***

runtime: arm: abort if hardware floating point missing

Fixes issue 3911.

Requires CL 6449127.

dfc@qnap:~$ ./runtime.test
runtime: this CPU has no floating point hardware, so it cannot run
this GOARM=7 binary. Recompile using GOARM=5.

R=rsc, minux.ma
CC=golang-dev
http://codereview.appspot.com/6442109
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b