diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-21 19:10:53 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-21 19:10:53 +0000 |
commit | 81ad8ba242815e27f990e18778c7cdca2e7e7522 (patch) | |
tree | 40a4c750eb33901b9eee8fc53459ae0e88c32a66 /target-sparc/op_mem.h | |
parent | 43febf49523552ca678eacc2677d3bac58cda4c0 (diff) |
Rework ASI instructions (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3205 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op_mem.h')
-rw-r--r-- | target-sparc/op_mem.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target-sparc/op_mem.h b/target-sparc/op_mem.h index ae63181c75..c0cf043b31 100644 --- a/target-sparc/op_mem.h +++ b/target-sparc/op_mem.h @@ -76,33 +76,6 @@ void OPPROTO glue(op_lddf, MEMSUFFIX) (void) } #ifdef TARGET_SPARC64 -/* XXX: Should be Atomically */ -/* XXX: There are no cas[x] instructions, only cas[x]a */ -void OPPROTO glue(op_cas, MEMSUFFIX)(void) -{ - uint32_t tmp; - - tmp = glue(ldl, MEMSUFFIX)(T0); - T2 &= 0xffffffffULL; - if (tmp == (T1 & 0xffffffffULL)) { - glue(stl, MEMSUFFIX)(T0, T2); - } - T2 = tmp; -} - -void OPPROTO glue(op_casx, MEMSUFFIX)(void) -{ - uint64_t tmp; - - // XXX - tmp = (uint64_t)glue(ldl, MEMSUFFIX)(T0) << 32; - tmp |= glue(ldl, MEMSUFFIX)(T0); - if (tmp == T1) { - glue(stq, MEMSUFFIX)(T0, T2); - } - T2 = tmp; -} - void OPPROTO glue(op_lduw, MEMSUFFIX)(void) { T1 = (uint64_t)(glue(ldl, MEMSUFFIX)(T0) & 0xffffffff); |