OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or32/] [generate.c] - Diff between revs 230 and 240

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 230 Rev 240
Line 88... Line 88...
    line[sizeof (line) - 1] = 0;
    line[sizeof (line) - 1] = 0;
    line_num++;
    line_num++;
    if (strncmp (str, "INSTRUCTION (", 13) == 0) {
    if (strncmp (str, "INSTRUCTION (", 13) == 0) {
      char *s;
      char *s;
      str += 13;
      str += 13;
      while (isspace (*str)) str++;
      while (isspace ((int)*str)) str++;
      s = str;
      s = str;
      while (*s && *s != ')') s++;
      while (*s && *s != ')') s++;
      *s = 0;
      *s = 0;
      while (isspace(*(s - 1))) s--;
      while (isspace((int)*(s - 1))) s--;
      *s = 0;
      *s = 0;
      if (strcmp (str, func_name) == 0) {
      if (strcmp (str, func_name) == 0) {
        olevel = 1;
        olevel = 1;
        str += strlen (str) + 1;
        str += strlen (str) + 1;
        while (isspace (*str)) str++;
        while (isspace ((int)*str)) str++;
        s = str;
        s = str;
        while (*s && *s != '\n' && *s != '\r') s++;
        while (*s && *s != '\n' && *s != '\r') s++;
        *s = 0;
        *s = 0;
        while (isspace(*(s - 1))) s--;
        while (isspace((int)*(s - 1))) s--;
        *s = 0;
        *s = 0;
        /*shift_fprintf (level, fo, "#line %i \"%s\"\n", line_num, in_file);*/
        /*shift_fprintf (level, fo, "#line %i \"%s\"\n", line_num, in_file);*/
        shift_fprintf (level, fo, "%s", str);
        shift_fprintf (level, fo, "%s", str);
        shift_fprintf (level, fo, "   /* \"%s\" */\n", func_name);
        shift_fprintf (level, fo, "   /* \"%s\" */\n", func_name);
        do {
        do {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.