From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29269 invoked by alias); 20 Dec 2001 16:49:58 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29247 invoked from network); 20 Dec 2001 16:49:56 -0000 Received: from unknown (HELO hxi?exch01.hxi.com) (63.107.233.166) by sources.redhat.com with SMTP; 20 Dec 2001 16:49:56 -0000 Received: from echo.hxi.com ([10.0.0.104]) by hxi_exch01.hxi.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TZQCXZKR; Thu, 20 Dec 2001 11:38:56 -0500 From: Kazu Hirata To: gdb-patches@sources.redhat.com Subject: [patch] Fix comment typos in h8300/compile.c. Date: Thu, 20 Dec 2001 08:49:00 -0000 X-SW-Source: 2001-12/txt/msg00519.txt.bz2 Message-ID: <20011220084900.ab9vAKmNLENmgRu0ZLyFbAt3NXr57WyeqV05WRBh1Cg@z> Hi, Attached is a patch to fix comment typos in h8300/compile.c. Committed as obvious. Kazu Hirata 2001-12-20 Kazu Hirata * compile.c: Fix comment typos. Index: compile.c =================================================================== RCS file: /cvs/src/src/sim/h8300/compile.c,v retrieving revision 1.6 diff -u -r1.6 compile.c --- compile.c 2000/08/11 02:03:02 1.6 +++ compile.c 2001/12/20 16:37:59 @@ -466,8 +466,7 @@ { int idx; - /* find the next cache entry to use */ - + /* Find the next cache entry to use. */ idx = cpu.cache_top + 1; cpu.compiles++; if (idx >= cpu.csize) @@ -476,16 +475,16 @@ } cpu.cache_top = idx; - /* Throw away its old meaning */ + /* Throw away its old meaning. */ cpu.cache_idx[cpu.cache[idx].oldpc] = 0; - /* set to new address */ + /* Set to new address. */ cpu.cache[idx].oldpc = pc; - /* fill in instruction info */ + /* Fill in instruction info. */ decode (pc, cpu.memory + pc, cpu.cache + idx); - /* point to new cache entry */ + /* Point to new cache entry. */ cpu.cache_idx[pc] = idx; } @@ -713,7 +712,7 @@ cpu.cache_idx = (unsigned short *) calloc (sizeof (short), memory_size); cpu.eightbit = (unsigned char *) calloc (sizeof (char), 256); - /* `msize' must be a power of two */ + /* `msize' must be a power of two. */ if ((memory_size & (memory_size - 1)) != 0) abort (); cpu.mask = memory_size - 1; @@ -760,7 +759,7 @@ lreg[8] = &cpu.regs[8]; - /* initialize the seg registers */ + /* Initialize the seg registers. */ if (!cpu.cache) sim_set_simcache_size (CSIZE); } @@ -1724,7 +1723,7 @@ sim_trace (sd) SIM_DESC sd; { - /* FIXME: unfinished */ + /* FIXME: Unfinished. */ abort (); } @@ -1782,7 +1781,7 @@ #define SP_REGNUM R7_REGNUM /* Contains address of top of stack */ #define FP_REGNUM R6_REGNUM /* Contains address of executing - * stack frame */ + * stack frame */ #define CCR_REGNUM 8 /* Contains processor status */ #define PC_REGNUM 9 /* Contains program counter */ @@ -1992,8 +1991,8 @@ #endif } -/* Indicate whether the cpu is an h8/300 or h8/300h. - FLAG is non-zero for the h8/300h. */ +/* Indicate whether the cpu is an H8/300 or H8/300H. + FLAG is non-zero for the H8/300H. */ void set_h8300h (flag) @@ -2001,7 +2000,7 @@ { /* FIXME: Much of the code in sim_load can be moved to sim_open. This function being replaced by a sim_open:ARGV configuration - option */ + option. */ h8300hmode = flag; } @@ -2012,12 +2011,12 @@ struct _bfd *abfd; char **argv; { - /* FIXME: Much of the code in sim_load can be moved here */ + /* FIXME: Much of the code in sim_load can be moved here. */ sim_kind = kind; myname = argv[0]; sim_callback = ptr; - /* fudge our descriptor */ + /* Fudge our descriptor. */ return (SIM_DESC) 1; } @@ -2026,7 +2025,7 @@ SIM_DESC sd; int quitting; { - /* nothing to do */ + /* Nothing to do. */ } /* Called by gdb to load a program into memory. */ @@ -2040,10 +2039,10 @@ { bfd *prog_bfd; - /* FIXME: The code below that sets a specific variant of the h8/300 - being simulated should be moved to sim_open(). */ + /* FIXME: The code below that sets a specific variant of the H8/300 + being simulated should be moved to sim_open(). */ - /* See if the file is for the h8/300 or h8/300h. */ + /* See if the file is for the H8/300 or H8/300H. */ /* ??? This may not be the most efficient way. The z8k simulator does this via a different mechanism (INIT_EXTRA_SYMTAB_INFO). */ if (abfd != NULL) @@ -2070,11 +2069,11 @@ simulator memory. The problem is when we do that, we don't know whether we're - debugging an h8/300 or h8/300h program. + debugging an H8/300 or H8/300H program. This is the first point at which we can make that determination, so we just reallocate memory now; this will also allow us to handle - switching between h8/300 and h8/300h programs without exiting + switching between H8/300 and H8/300H programs without exiting gdb. */ if (h8300hmode) memory_size = H8300H_MSIZE; @@ -2092,7 +2091,7 @@ cpu.cache_idx = (unsigned short *) calloc (sizeof (short), memory_size); cpu.eightbit = (unsigned char *) calloc (sizeof (char), 256); - /* `msize' must be a power of two */ + /* `msize' must be a power of two. */ if ((memory_size & (memory_size - 1)) != 0) abort (); cpu.mask = memory_size - 1;