Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6ac08ba6
Commit
6ac08ba6
authored
Oct 18, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: update arm softfloat - no more R12
R=ken2 CC=golang-dev
https://golang.org/cl/2555041
parent
18ccbda5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
softfloat.c
src/pkg/runtime/arm/softfloat.c
+11
-11
No files found.
src/pkg/runtime/arm/softfloat.c
View file @
6ac08ba6
...
@@ -370,7 +370,8 @@ ret:
...
@@ -370,7 +370,8 @@ ret:
// cmf, compare floating point
// cmf, compare floating point
static
void
static
void
compare
(
uint32
*
pc
,
uint32
*
regs
)
{
compare
(
uint32
*
pc
,
uint32
*
regs
)
{
uint32
i
,
flags
,
lhs
,
rhs
,
sign0
,
sign1
;
uint32
i
,
flags
,
lhs
,
rhs
,
sign0
,
sign1
;
uint64
f0
,
f1
,
mant0
,
mant1
;
uint64
f0
,
f1
,
mant0
,
mant1
;
int32
exp0
,
exp1
;
int32
exp0
,
exp1
;
...
@@ -502,16 +503,14 @@ loadconst(uint32 *pc, uint32 *regs)
...
@@ -502,16 +503,14 @@ loadconst(uint32 *pc, uint32 *regs)
uint32
offset
;
uint32
offset
;
uint32
*
addr
;
uint32
*
addr
;
if
(
*
pc
&
0xfffff000
!=
0xe59fb838
||
if
((
*
pc
&
0xfffff000
)
!=
0xe59fb000
||
(
*
(
pc
+
1
)
&
0xffff8fff
)
!=
0xed9b0100
)
*
(
pc
+
1
)
!=
0xe08bb00c
||
*
(
pc
+
2
)
&
0xffff8fff
!=
0xed9b0100
)
goto
undef
;
goto
undef
;
offset
=
*
pc
&
0xfff
;
offset
=
*
pc
&
0xfff
;
addr
=
(
uint32
*
)((
uint8
*
)
pc
+
offset
+
8
);
addr
=
(
uint32
*
)((
uint8
*
)
pc
+
offset
+
8
);
//printf("DEBUG: addr %p *addr %x final %p\n", addr, *addr, *addr + regs[12]);
//printf("DEBUG: addr %p *addr %x final %p\n", addr, *addr, *addr + regs[12]);
regs
[
11
]
=
*
addr
+
regs
[
12
]
;
regs
[
11
]
=
*
addr
;
loadstore
(
pc
+
2
,
regs
);
loadstore
(
pc
+
1
,
regs
);
goto
ret
;
goto
ret
;
undef:
undef:
...
@@ -587,6 +586,8 @@ stepflt(uint32 *pc, uint32 *regs)
...
@@ -587,6 +586,8 @@ stepflt(uint32 *pc, uint32 *regs)
{
{
uint32
i
,
c
;
uint32
i
,
c
;
//printf("stepflt %p %p\n", pc, *pc);
i
=
*
pc
;
i
=
*
pc
;
// unconditional forward branches.
// unconditional forward branches.
...
@@ -622,12 +623,11 @@ stepflt(uint32 *pc, uint32 *regs)
...
@@ -622,12 +623,11 @@ stepflt(uint32 *pc, uint32 *regs)
}
}
// lookahead for virtual instructions that span multiple arm instructions
// lookahead for virtual instructions that span multiple arm instructions
c
=
((
*
pc
&
0x0f000000
)
>>
16
)
|
c
=
((
*
pc
&
0x0f000000
)
>>
20
)
|
((
*
(
pc
+
1
)
&
0x0f000000
)
>>
20
)
|
((
*
(
pc
+
1
)
&
0x0f000000
)
>>
24
);
((
*
(
pc
+
2
)
&
0x0f000000
)
>>
24
);
if
(
c
==
0x5d
)
{
// 0101 1101
if
(
c
==
0x50d
)
{
// 0101 0000 1101
loadconst
(
pc
,
regs
);
loadconst
(
pc
,
regs
);
return
3
;
return
2
;
}
}
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment