Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
40
Issues
40
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
f9dcc877
Commit
f9dcc877
authored
Jun 13, 2017
by
Isaac Oscar Gariano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undid inlining of get_thread_local (it didn't work, will fix later..)
parent
9c65b72a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
inst_sel.rs
src/compiler/backend/arch/aarch64/inst_sel.rs
+6
-2
No files found.
src/compiler/backend/arch/aarch64/inst_sel.rs
View file @
f9dcc877
...
...
@@ -2466,18 +2466,22 @@ impl <'a> InstructionSelection {
// This generates code identical to (though it may use different registers) the function muentry_get_thread_local
fn
emit_get_threadlocal
(
&
mut
self
,
f_context
:
&
mut
FunctionContext
,
vm
:
&
VM
)
->
P
<
Value
>
{
let
mut
rets
=
self
.emit_runtime_entry
(
&
entrypoints
::
GET_THREAD_LOCAL
,
vec!
[],
None
,
None
,
f_context
,
vm
);
rets
.pop
()
.unwrap
()
/* TODO: Fix this
let tmp = make_temporary(f_context, ADDRESS_TYPE.clone(), vm);
// Read the start address of thread local storage
self.backend.emit_mrs(&tmp, "TPIDR_EL0");
// Add the offset of mu_tls
self
.backend
.emit_add_str
(
&
tmp
,
&
tmp
,
":tprel_hi12:mu_tls"
);
self.backend.emit_add_str(&tmp, &tmp, ":tprel_hi12:mu_tls
, LSL #12
");
self.backend.emit_add_str(&tmp, &tmp, ":tprel_lo12_nc:mu_tls");
// Load tmp with the value of mu_tls
emit_load(self.backend.as_mut(), &tmp, &tmp, f_context, vm);
tmp
tmp
*/
}
// ret: Option<Vec<P<Value>>
...
...
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