guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 93/437: subtract 1 from the final byte being flushed in


From: Andy Wingo
Subject: [Guile-commits] 93/437: subtract 1 from the final byte being flushed in PPC jit_flush_code
Date: Mon, 2 Jul 2018 05:13:52 -0400 (EDT)

wingo pushed a commit to branch lightning
in repository guile.

commit f87b2f6df889abadfb21241d45998e6f1e21d7b4
Author: Paolo Bonzini <address@hidden>
Date:   Thu Oct 9 10:19:26 2008 +0200

    subtract 1 from the final byte being flushed in PPC jit_flush_code
    
    2008-10-09  Paolo Bonzini  <address@hidden>
    
        * lightning/ppc/funcs.h (jit_flush_code): Subtract 1 from end.
        Reported by Eli Barzilay and Matthew Flatt.
---
 ChangeLog             | 5 +++++
 lightning/ppc/funcs.h | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0d4e476..bda065e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-09  Paolo Bonzini  <address@hidden>
+
+       * lightning/ppc/funcs.h (jit_flush_code): Subtract 1 from end.
+       Reported by Eli Barzilay and Matthew Flatt.
+
 2008-08-23  Nix  <address@hidden>
 
        * lightning/i386/Makefile.frag: fp-32.h and fp-64.h are target files.
diff --git a/lightning/ppc/funcs.h b/lightning/ppc/funcs.h
index 9f3df90..ae9301f 100644
--- a/lightning/ppc/funcs.h
+++ b/lightning/ppc/funcs.h
@@ -67,6 +67,9 @@ jit_flush_code(void *start, void *end)
         break;
   }
 
+  /* Point end to the last byte being flushed.  */
+  end   =(void*)( (long)(end - 1));
+
   start =(void*)( (long)start - (((long) start) & (cache_line_size - 1)));
   end   =(void*)( (long)end   - (((long) end) & (cache_line_size - 1)));
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]