Changeset 118 for trunk/Softwares/Common


Ignore:
Timestamp:
May 21, 2009, 12:01:32 AM (15 years ago)
Author:
rosiere
Message:

1) Stat List : scan all queue to find free register
2) Write_queue : test "genMealy" add bypass [0]
3) Functionnal_unit : add const parameters to add or not the pipeline_in
4) Load Store Unit : if load make an exception, free nb_check
5) Debug, change test to add model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/Common/src/c/func_io.c

    r101 r118  
    11#include "func_io.h"
    22#include "thread_info.h"
     3#include "cpu_info.h"
    34
    45void tty (unsigned char data)
    56{
    6   unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 0);
     7  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0);
    78
    89  *(addr) = data;
     
    1112void print (char * data)
    1213{
    13   unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 0);
     14  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0);
    1415
    1516  while ((*data) != '\0')
     
    2223void show (unsigned int data)
    2324{
    24   unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 8);
     25  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 8);
    2526
    2627  *(addr) = data;
     
    2930void quit (unsigned int data)
    3031{
    31   unsigned int * addr = (unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 4);
     32  unsigned int * addr = (unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 4);
    3233
    3334  *(addr) = data;
Note: See TracChangeset for help on using the changeset viewer.