Changeset f73e180 in rtems-testing


Ignore:
Timestamp:
Apr 25, 2010, 4:37:56 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
ef2241b
Parents:
2b9fbf4
Message:

2010-04-25 Joel Sherrill <joel.sherrill@…>

  • Target_i386.cc, Target_i386.h, Target_lm32.cc, Target_lm32.h: Add branches for lm32.
Location:
rtems-coverage
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r2b9fbf4 rf73e180  
     12010-04-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Target_i386.cc, Target_i386.h, Target_lm32.cc, Target_lm32.h: Add
     4        branches for lm32.
     5
    162010-04-24      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/Target_i386.cc

    r2b9fbf4 rf73e180  
    99 *  functions supporting target unique functionallity.
    1010 */
     11
    1112#include "Target_i386.h"
    1213#include <stdio.h>
     
    100101  )
    101102  {
    102     if (
    103       find(
    104         branchInstructions.begin(),
    105         branchInstructions.end(),
    106         instruction
    107       ) == branchInstructions.end()
     103    if ( find(
     104           branchInstructions.begin(),
     105           branchInstructions.end(),
     106           instruction
     107        ) == branchInstructions.end()
    108108    )
    109109      return false;
    110     else
    111       return true;
     110    return true;
    112111  }
    113112
  • rtems-coverage/Target_i386.h

    r2b9fbf4 rf73e180  
    6161
    6262  private:
    63     std::list < std::string> branchInstructions;
     63    std::list <std::string> branchInstructions;
    6464  };
    6565
  • rtems-coverage/Target_lm32.cc

    r2b9fbf4 rf73e180  
    1414#include <string.h>
    1515#include <unistd.h>
     16#include <algorithm>
    1617
    1718namespace Target {
    1819
     20  // http://www.latticesemi.com/documents/doc20890x45.pdf
    1921  Target_lm32::Target_lm32( std::string targetName ):
    2022    TargetBase( targetName )
    2123  {
     24    branchInstructions.push_back("be");
     25    branchInstructions.push_back("bge");
     26    branchInstructions.push_back("bgeu");
     27    branchInstructions.push_back("bg");
     28    branchInstructions.push_back("bgu");
     29    branchInstructions.push_back("bne");
    2230  }
    2331
     
    4351  )
    4452  {
    45     fprintf( stderr, "DETERMINE BRANCH INSTRUCTIONS FOR THIS ARCHITECTURE! -- fix me\n" );
    46     exit( -1 );   
     53    if ( find(
     54           branchInstructions.begin(),
     55           branchInstructions.end(),
     56           instruction
     57        ) == branchInstructions.end()
     58    )
     59      return false;
     60    return true;
    4761  }
    4862
  • rtems-coverage/Target_lm32.h

    r2b9fbf4 rf73e180  
    6161
    6262  private:
     63    std::list <std::string> branchInstructions;
    6364
    6465  };
Note: See TracChangeset for help on using the changeset viewer.