arm-sim tidy ups.

Nick Clifton nickc@cambridge.redhat.com
Mon May 27 07:53:00 GMT 2002


Hi Guys,

  I am applying some tidy-up patches to the ARM sim, including this
  one which makes the memory allocator only perform access checks if
  the 'check' parameter is true, and a patch to sim_create_inferior to
  report unknown machine numbers.

Cheers
        Nick

2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>

	* armvirt.c (GetWord): Only perform access checks if 'check'
	is set.
	(PutWord): Likewise.
	* wrapper.c (sim_create_inferior): Report unknown machine
	numbers.

Index: armvirt.c
===================================================================
RCS file: /cvs/src/src/sim/arm/armvirt.c,v
retrieving revision 1.7
diff -c -3 -p -w -r1.7 armvirt.c
*** armvirt.c	18 Apr 2001 16:39:37 -0000	1.7
--- armvirt.c	27 May 2002 14:00:29 -0000
*************** GetWord (ARMul_State * state, ARMword ad
*** 64,69 ****
--- 64,70 ----
    ARMword **pagetable;
    ARMword *pageptr;
  
+   if (check)
      XScale_check_memacc (state, &address, 0);
  
    page = address >> PAGEBITS;
*************** PutWord (ARMul_State * state, ARMword ad
*** 99,104 ****
--- 100,106 ----
    ARMword **pagetable;
    ARMword *pageptr;
  
+   if (check)
      XScale_check_memacc (state, &address, 1);
  
    page = address >> PAGEBITS;

Index: wrapper.c
===================================================================
RCS file: /cvs/src/src/sim/arm/wrapper.c,v
retrieving revision 1.19
diff -c -3 -p -w -r1.19 wrapper.c
*** wrapper.c	20 May 2002 14:32:49 -0000	1.19
--- wrapper.c	27 May 2002 14:00:29 -0000
*************** sim_create_inferior (sd, abfd, argv, env
*** 223,229 ****
      default:
        (*sim_callback->printf_filtered)
  	(sim_callback,
! 	 "Unknown machine type; please update sim_create_inferior.\n");
        /* fall through */
  
      case 0:
--- 223,230 ----
      default:
        (*sim_callback->printf_filtered)
  	(sim_callback,
! 	 "Unknown machine type '%d'; please update sim_create_inferior.\n",
! 	 mach);
        /* fall through */
  
      case 0:



More information about the Gdb-patches mailing list