forked from qemu/qemu
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 13
gdb-xml: add tricore.xml #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            Rot127
  merged 12 commits into
  BinaryAnalysisPlatform:trace-10.0
from
Starforge-Atelier:trace-10-tricore
  
      
      
   
  Oct 24, 2025 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            12 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      0e0b286
              
                fix frame_protobuf library
              
              
                b1llow fe13983
              
                add tricore-core.xml
              
              
                b1llow eb87d3d
              
                try fix bap-tracing
              
              
                b1llow 51d736b
              
                add tricore xml
              
              
                b1llow 727f9b9
              
                update bap-frames submodule URL and commit reference
              
              
                b1llow b8fcd61
              
                remove branch specification for bap-frames submodule
              
              
                b1llow 4788cb6
              
                Update configs/targets/tricore-softmmu.mak
              
              
                b1llow 967f2cd
              
                Fix plugin exit message and document flush_all_frame_bufs() issue
              
              
                b1llow 73b327f
              
                Update tricore-core.xml to include additional special registers and e…
              
              
                b1llow bf80e0b
              
                Update build.yaml to install Python dependencies and include tricore-…
              
              
                b1llow a258235
              
                Fix unused function warning in bap-tracing plugin with __attribute__(…
              
              
                Copilot 0b343c5
              
                Add TriCore to the list of supported architectures
              
              
                b1llow File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -11,6 +11,7 @@ Known to work: | |
| - Sparc | ||
| - Hexagon | ||
| - PPC | ||
| - TriCore | ||
|  | ||
| Needs fixes: | ||
|  | ||
|  | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| TARGET_ARCH=tricore | ||
| TARGET_LONG_BITS=32 | ||
| TARGET_XML_FILES=gdb-xml/tricore-core.xml | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| <?xml version="1.0"?> | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a comment here where you got it from or if you created it and with what reference. Also for the other xml files. | ||
|  | ||
| <!-- Based on https://github.com/Gigallith/gdb-tricore/blob/main/gdb/features/tricore-core.xml | ||
| Modified according to rizin's TriCore plugin and QEMU's TriCore implementation. | ||
| Added several special registers (syscon, cpu_id, core_id, biv, btv, isp, fcx, lcx, compat, | ||
| pmucon0, cycles, instr, time). --> | ||
|  | ||
| <!-- Copyright (C) 2019 Free Software Foundation, Inc. | ||
|  | ||
| Copying and distribution of this file, with or without modification, | ||
| are permitted in any medium without royalty provided the copyright | ||
| notice and this notice are preserved. --> | ||
|  | ||
| <!DOCTYPE feature SYSTEM "gdb-target.dtd"> | ||
| <feature name="org.gnu.gdb.tricore.core"> | ||
| <reg name="a0" bitsize="32" type="data_ptr"/> | ||
| <reg name="a1" bitsize="32" type="uint32"/> | ||
| <reg name="a2" bitsize="32" type="uint32"/> | ||
| <reg name="a3" bitsize="32" type="uint32"/> | ||
| <reg name="a4" bitsize="32" type="uint32"/> | ||
| <reg name="a5" bitsize="32" type="uint32"/> | ||
| <reg name="a6" bitsize="32" type="uint32"/> | ||
| <reg name="a7" bitsize="32" type="uint32"/> | ||
| <reg name="a8" bitsize="32" type="uint32"/> | ||
| <reg name="a9" bitsize="32" type="uint32"/> | ||
| <reg name="a10" bitsize="32" type="uint32"/> | ||
| <reg name="a11" bitsize="32" type="uint32"/> | ||
| <reg name="a12" bitsize="32" type="uint32"/> | ||
| <reg name="a13" bitsize="32" type="uint32"/> | ||
| <reg name="a14" bitsize="32" type="uint32"/> | ||
| <reg name="a15" bitsize="32" type="uint32"/> | ||
|  | ||
| <reg name="d0" bitsize="32" type="data_ptr"/> | ||
| <reg name="d1" bitsize="32" type="uint32"/> | ||
| <reg name="d2" bitsize="32" type="uint32"/> | ||
| <reg name="d3" bitsize="32" type="uint32"/> | ||
| <reg name="d4" bitsize="32" type="uint32"/> | ||
| <reg name="d5" bitsize="32" type="uint32"/> | ||
| <reg name="d6" bitsize="32" type="uint32"/> | ||
| <reg name="d7" bitsize="32" type="uint32"/> | ||
| <reg name="d8" bitsize="32" type="uint32"/> | ||
| <reg name="d9" bitsize="32" type="uint32"/> | ||
| <reg name="d10" bitsize="32" type="uint32"/> | ||
| <reg name="d11" bitsize="32" type="uint32"/> | ||
| <reg name="d12" bitsize="32" type="uint32"/> | ||
| <reg name="d13" bitsize="32" type="uint32"/> | ||
| <reg name="d14" bitsize="32" type="uint32"/> | ||
| <reg name="d15" bitsize="32" type="uint32"/> | ||
|  | ||
| <flags id="psw_flags" size="4"> | ||
| <field name="CDC" start="0" end="6"/> | ||
| <field name="CDE" start="7" end="8"/> | ||
| <field name="C" start="31" end="31"/> | ||
| <field name="V" start="30" end="30"/> | ||
| <field name="SV" start="29" end="29"/> | ||
| <field name="AV" start="28" end="28"/> | ||
| <field name="SAV" start="27" end="27"/> | ||
| <field name="RM" start="24" end="25"/> | ||
| <field name="PRS" start="12" end="13"/> | ||
| <field name="IO" start="10" end="11"/> | ||
| <field name="IS" start="9" end="9"/> | ||
| <field name="GW" start="8" end="8"/> | ||
| </flags> | ||
|  | ||
| <reg name="pcxi" bitsize="32" type="data_ptr"/> | ||
| <reg name="psw" bitsize="32" type="psw_flags"/> | ||
| <reg name="pc" bitsize="32" type="code_ptr"/> | ||
| <reg name="icr" bitsize="32" type="uint32"/> | ||
| <reg name="syscon" bitsize="32" type="uint32"/> | ||
| <reg name="cpu_id" bitsize="32" type="uint32"/> | ||
| <reg name="core_id" bitsize="32" type="uint32"/> | ||
| <reg name="biv" bitsize="32" type="uint32"/> | ||
| <reg name="btv" bitsize="32" type="uint32"/> | ||
| <reg name="isp" bitsize="32" type="uint32"/> | ||
| <reg name="icr" bitsize="32" type="uint32"/> | ||
| <reg name="fcx" bitsize="32" type="uint32"/> | ||
| <reg name="lcx" bitsize="32" type="uint32"/> | ||
| <reg name="compat" bitsize="32" type="uint32"/> | ||
| <reg name="pmucon0" bitsize="32"/> | ||
| <reg name="cycles" bitsize="32"/> | ||
| <reg name="instr" bitsize="32"/> | ||
| <reg name="time" bitsize="32"/> | ||
| </feature> | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0"?> | ||
| <!-- Copyright (C) 2007-2020 Free Software Foundation, Inc. | ||
|  | ||
| Copying and distribution of this file, with or without modification, | ||
| are permitted in any medium without royalty provided the copyright | ||
| notice and this notice are preserved. --> | ||
|  | ||
| <!DOCTYPE feature SYSTEM "gdb-target.dtd"> | ||
| <feature name="org.gnu.gdb.tricore.fpu"> | ||
| <reg name="FPU_TRAP_CON" bitsize="32" type="ieee_single" regnum="0"/> | ||
| <reg name="FPU_TRAP_PC" bitsize="32" type="ieee_single"/> | ||
| <reg name="FPU_TRAP_OPC" bitsize="32" type="ieee_single"/> | ||
| <reg name="FPU_TRAP_SRC1" bitsize="32" type="ieee_single"/> | ||
| <reg name="FPU_TRAP_SRC2" bitsize="32" type="ieee_single"/> | ||
| <reg name="FPU_TRAP_SRC3" bitsize="32" type="ieee_single"/> | ||
| <reg name="FPU_ID" bitsize="32" type="ieee_single"/> | ||
| </feature> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0"?> | ||
| <!-- Copyright (C) 2013-2020 Free Software Foundation, Inc. | ||
|  | ||
| Copying and distribution of this file, with or without modification, | ||
| are permitted in any medium without royalty provided the copyright | ||
| notice and this notice are preserved. --> | ||
|  | ||
| <!DOCTYPE target SYSTEM "gdb-target.dtd"> | ||
| <target> | ||
| <architecture>tricore</architecture> | ||
| <xi:include href="tricore-core.xml"/> | ||
| <xi:include href="tricore-fpu.xml"/> | ||
| </target> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document why it is commented out. Or even better, open an issue and link it here.
Also change the log message, because it doesn't flush the data anymore.