This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: [PATCH]: MIPS enhancements to libgcj...


On Tue, 21 Oct 2003, David Daney wrote:
> The backtrace is implemented in sysdep/dwarf2-backtrace.cc which I
> think will work for all *-linux* targets.  If someone wants to test
> this theory, that would be great.

Great, we should use this on alpha too.  Time to blow the dust off my
164LX.

> Since I am only an amateur MIPS expert, perhaps someone (a real MIPS
> expert for example) should look at sysdeps/mips/locks.h

I'm certainly no MIPS expert, so others might comment on the llsc stuff.
However:

+inline static void
+release_set(volatile obj_addr_t *addr, obj_addr_t new_val)
+{
+  __asm__ __volatile__("sync" : :);
+  *(addr) = new_val;
+}

Probably want a memory clobber here...

+inline static void
+read_barrier()
+{
+  __asm__ __volatile__("sync" : :);
+}

...and here...

+inline static void
+write_barrier()
+{
+  __asm__ __volatile__("sync" : :);
+}

...and here.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]