[llvm] [BOLT] Add reading support for Linux kernel .altinstructions section (PR #84283)
    Davide Italiano via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar  7 09:43:06 PST 2024
    
    
  
================
@@ -1132,6 +1156,123 @@ Error LinuxKernelRewriter::readBugTable() {
   return Error::success();
 }
 
+/// The kernel can replace certain instruction sequences depending on hardware
+/// it is running on and features specified during boot time. The information
+/// about alternative instruction sequences is stored in .altinstructions
+/// section. The format of entries in this section is defined in
+/// arch/x86/include/asm/alternative.h:
+///
+///   struct alt_instr {
+///     s32 instr_offset;
+///     s32 repl_offset;
+///     uXX feature;
----------------
dcci wrote:
what does uXX stand for?
https://github.com/llvm/llvm-project/pull/84283
    
    
More information about the llvm-commits
mailing list