/[gxemul]/trunk/src/arcbios.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/arcbios.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by dpavlin, Mon Oct 8 16:18:11 2007 UTC revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: arcbios.c,v 1.103 2005/05/23 12:21:45 debug Exp $   *  $Id: arcbios.c,v 1.105 2005/06/26 11:36:27 debug Exp $
29   *   *
30   *  ARCBIOS emulation.   *  ARCBIOS emulation.
31   */   */
# Line 2290  void arcbios_init(struct machine *machin Line 2290  void arcbios_init(struct machine *machin
2290  #endif  #endif
2291                  arcbios_putstring(cpu, "   ARCBIOS emulation\n");                  arcbios_putstring(cpu, "   ARCBIOS emulation\n");
2292    
2293                  sprintf(tmpstr, "%i cpu%s (%s), %i MB memory\n\n",                  snprintf(tmpstr, sizeof(tmpstr), "%i cpu%s (%s), %i MB "
2294                      machine->ncpus, machine->ncpus > 1? "s" : "",                      "memory\n\n", machine->ncpus, machine->ncpus > 1? "s" : "",
2295                      cpu->cd.mips.cpu_type.name,                      cpu->cd.mips.cpu_type.name,
2296                      machine->physical_ram_in_mb);                      machine->physical_ram_in_mb);
2297                  arcbios_putstring(cpu, tmpstr);                  arcbios_putstring(cpu, tmpstr);
# Line 2445  void arcbios_init(struct machine *machin Line 2445  void arcbios_init(struct machine *machin
2445                  /*  A very special case for IP24 (which identifies itself                  /*  A very special case for IP24 (which identifies itself
2446                      as an IP22):  */                      as an IP22):  */
2447                  if (machine->machine_subtype == 24)                  if (machine->machine_subtype == 24)
2448                          sprintf(name, "SGI-IP22");                          snprintf(name, alloclen, "SGI-IP22");
2449                  break;                  break;
2450          case MACHINE_ARC:          case MACHINE_ARC:
2451                  /*  ARC:  */                  /*  ARC:  */
# Line 2512  void arcbios_init(struct machine *machin Line 2512  void arcbios_init(struct machine *machin
2512                          if (arc_cpu_name[jj] >= 'a' && arc_cpu_name[jj] <= 'z')                          if (arc_cpu_name[jj] >= 'a' && arc_cpu_name[jj] <= 'z')
2513                                  arc_cpu_name[jj] += ('A' - 'a');                                  arc_cpu_name[jj] += ('A' - 'a');
2514    
2515                  strcpy(arc_fpc_name, arc_cpu_name);                  strlcpy(arc_fpc_name, arc_cpu_name, sizeof(arc_fpc_name));
2516                  strcat(arc_fpc_name, "FPC");                  strlcat(arc_fpc_name, "FPC", sizeof(arc_fpc_name));
2517    
2518                  cpuaddr = arcbios_addchild_manual(cpu,                  cpuaddr = arcbios_addchild_manual(cpu,
2519                      COMPONENT_CLASS_ProcessorClass, COMPONENT_TYPE_CPU,                      COMPONENT_CLASS_ProcessorClass, COMPONENT_TYPE_CPU,

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26