Changeset 76ac827 in rtems-testing


Ignore:
Timestamp:
May 19, 2010, 5:06:29 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
3f44bc3
Parents:
8e777521
Message:

2010-05-19 Joel Sherrill <joel.sherrilL@…>

  • Target_i386.cc, Target_i386.h: Spacing.
  • Target_m68k.cc, Target_m68k.h, Target_powerpc.cc: Branch information now correct on m68k and PowerPC.
Location:
rtems-coverage
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r8e777521 r76ac827  
     12010-05-19      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * Target_i386.cc, Target_i386.h: Spacing.
     4        * Target_m68k.cc, Target_m68k.h, Target_powerpc.cc: Branch
     5        information now correct on m68k and PowerPC.
     6
    172010-05-19      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    28
  • rtems-coverage/Target_i386.cc

    r8e777521 r76ac827  
    106106  }
    107107
    108 
    109108  TargetBase *Target_i386_Constructor(
    110109    std::string          targetName
  • rtems-coverage/Target_i386.h

    r8e777521 r76ac827  
    5252    );
    5353
    54     /*!
    55      *  This method returns the bit set by Qemu in the trace record
    56      *  when a branch is taken.
    57      */
     54    /* Documentation inherited from base class */
    5855    virtual uint8_t qemuTakenBit(void);
    5956
    60     /*!
    61      *  This method returns the bit set by Qemu in the trace record
    62      *  when a branch is taken.
    63      */
     57    /* Documentation inherited from base class */
    6458    virtual uint8_t qemuNotTakenBit(void);
     59
    6560  private:
     61
    6662  };
    6763
  • rtems-coverage/Target_m68k.cc

    r8e777521 r76ac827  
    1010 */
    1111#include "Target_m68k.h"
     12#include "qemu-traces.h"
    1213#include <stdio.h>
    1314#include <stdlib.h>
     
    2122  {
    2223    branchInstructions.push_back("bcc");
     24    branchInstructions.push_back("bccs");
     25    branchInstructions.push_back("bccl");
    2326    branchInstructions.push_back("bcs");
     27    branchInstructions.push_back("bcss");
     28    branchInstructions.push_back("bcsl");
    2429    branchInstructions.push_back("beq");
     30    branchInstructions.push_back("beqs");
     31    branchInstructions.push_back("beql");
    2532    branchInstructions.push_back("bge");
     33    branchInstructions.push_back("bges");
     34    branchInstructions.push_back("bgel");
    2635    branchInstructions.push_back("bgt");
     36    branchInstructions.push_back("bgts");
     37    branchInstructions.push_back("bgtl");
    2738    branchInstructions.push_back("bhi");
     39    branchInstructions.push_back("bhis");
     40    branchInstructions.push_back("bhil");
    2841    branchInstructions.push_back("bhs");
     42    branchInstructions.push_back("bhss");
     43    branchInstructions.push_back("bhsl");
    2944    branchInstructions.push_back("ble");
     45    branchInstructions.push_back("bles");
     46    branchInstructions.push_back("blel");
    3047    branchInstructions.push_back("blo");
     48    branchInstructions.push_back("blos");
     49    branchInstructions.push_back("blol");
    3150    branchInstructions.push_back("bls");
     51    branchInstructions.push_back("blss");
     52    branchInstructions.push_back("blsl");
    3253    branchInstructions.push_back("blt");
     54    branchInstructions.push_back("blts");
     55    branchInstructions.push_back("bltl");
    3356    branchInstructions.push_back("bmi");
     57    branchInstructions.push_back("bmis");
     58    branchInstructions.push_back("bmil");
    3459    branchInstructions.push_back("bne");
     60    branchInstructions.push_back("bnes");
     61    branchInstructions.push_back("bnel");
    3562    branchInstructions.push_back("bpl");
     63    branchInstructions.push_back("bpls");
     64    branchInstructions.push_back("bpll");
    3665    branchInstructions.push_back("bvc");
     66    branchInstructions.push_back("bvcs");
     67    branchInstructions.push_back("bvcl");
    3768    branchInstructions.push_back("bvs");
     69    branchInstructions.push_back("bvss");
     70    branchInstructions.push_back("bvsl");
    3871 
    3972    branchInstructions.sort();
     
    71104  )
    72105  {
    73     fprintf( stderr, "DETERMINE BRANCH INSTRUCTIONS FOR THIS ARCHITECTURE! -- fix me\n" );
     106    fprintf(
     107      stderr,
     108      "DETERMINE BRANCH INSTRUCTIONS FOR THIS ARCHITECTURE! -- fix me\n"
     109    );
    74110    exit( -1 );   
     111  }
     112
     113  uint8_t Target_m68k::qemuTakenBit(void)
     114  {
     115    return TRACE_OP_BR1;
     116  }
     117
     118  uint8_t Target_m68k::qemuNotTakenBit(void)
     119  {
     120    return TRACE_OP_BR0;
    75121  }
    76122
  • rtems-coverage/Target_m68k.h

    r8e777521 r76ac827  
    6060    );
    6161
     62    /* Documentation inherited from base class */
     63    virtual uint8_t qemuTakenBit(void);
     64
     65    /* Documentation inherited from base class */
     66    virtual uint8_t qemuNotTakenBit(void);
     67
    6268  private:
    6369
  • rtems-coverage/Target_powerpc.cc

    r8e777521 r76ac827  
    2020    TargetBase( targetName )
    2121  {
    22     branchInstructions.push_back("b");
    23     branchInstructions.push_back("ba");
    24     branchInstructions.push_back("bl");
     22    // bl is actually branch and link which is a call
     23    // branchInstructions.push_back("b");
     24    // branchInstructions.push_back("ba");
     25    branchInstructions.push_back("beq");
     26    branchInstructions.push_back("beq+");
     27    branchInstructions.push_back("beq-");
     28    branchInstructions.push_back("bne");
     29    branchInstructions.push_back("bne+");
     30    branchInstructions.push_back("bne-");
     31    branchInstructions.push_back("bge");
     32    branchInstructions.push_back("bge+");
     33    branchInstructions.push_back("bge-");
     34    branchInstructions.push_back("bgt");
     35    branchInstructions.push_back("bgt+");
     36    branchInstructions.push_back("bgt-");
     37    branchInstructions.push_back("ble");
     38    branchInstructions.push_back("ble+");
     39    branchInstructions.push_back("ble-");
     40    branchInstructions.push_back("blt");
     41    branchInstructions.push_back("blt+");
     42    branchInstructions.push_back("blt-");
    2543    branchInstructions.push_back("bla");
    2644    branchInstructions.push_back("bc");
Note: See TracChangeset for help on using the changeset viewer.