< prev index next >

src/share/vm/runtime/icache.hpp

Print this page




  54 
  55  public:
  56   enum {
  57     stub_size      = 0, // Size of the icache flush stub in bytes
  58     line_size      = 0, // Icache line size in bytes
  59     log2_line_size = 0  // log2(line_size)
  60   };
  61 
  62   static void initialize();
  63   static void invalidate_word(address addr);
  64   static void invalidate_range(address start, int nbytes);
  65 };
  66 
  67 
  68 // Must be included before the definition of ICacheStubGenerator
  69 // because ICacheStubGenerator uses ICache definitions.
  70 
  71 #ifdef TARGET_ARCH_x86
  72 # include "icache_x86.hpp"
  73 #endif



  74 #ifdef TARGET_ARCH_sparc
  75 # include "icache_sparc.hpp"
  76 #endif
  77 #ifdef TARGET_ARCH_zero
  78 # include "icache_zero.hpp"
  79 #endif
  80 #ifdef TARGET_ARCH_arm
  81 # include "icache_arm.hpp"
  82 #endif
  83 #ifdef TARGET_ARCH_ppc
  84 # include "icache_ppc.hpp"
  85 #endif
  86 
  87 
  88 
  89 class ICacheStubGenerator : public StubCodeGenerator {
  90  public:
  91   ICacheStubGenerator(CodeBuffer *c) : StubCodeGenerator(c) {}
  92 
  93   // Generate the icache flush stub.




  54 
  55  public:
  56   enum {
  57     stub_size      = 0, // Size of the icache flush stub in bytes
  58     line_size      = 0, // Icache line size in bytes
  59     log2_line_size = 0  // log2(line_size)
  60   };
  61 
  62   static void initialize();
  63   static void invalidate_word(address addr);
  64   static void invalidate_range(address start, int nbytes);
  65 };
  66 
  67 
  68 // Must be included before the definition of ICacheStubGenerator
  69 // because ICacheStubGenerator uses ICache definitions.
  70 
  71 #ifdef TARGET_ARCH_x86
  72 # include "icache_x86.hpp"
  73 #endif
  74 #ifdef TARGET_ARCH_aarch64
  75 # include "icache_aarch64.hpp"
  76 #endif
  77 #ifdef TARGET_ARCH_sparc
  78 # include "icache_sparc.hpp"
  79 #endif
  80 #ifdef TARGET_ARCH_zero
  81 # include "icache_zero.hpp"
  82 #endif
  83 #ifdef TARGET_ARCH_arm
  84 # include "icache_arm.hpp"
  85 #endif
  86 #ifdef TARGET_ARCH_ppc
  87 # include "icache_ppc.hpp"
  88 #endif
  89 
  90 
  91 
  92 class ICacheStubGenerator : public StubCodeGenerator {
  93  public:
  94   ICacheStubGenerator(CodeBuffer *c) : StubCodeGenerator(c) {}
  95 
  96   // Generate the icache flush stub.


< prev index next >