public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [patch][commit] Typo in utils-sim.scm Generating Decoder
@ 2006-05-09 18:45 Dave Brolley
  0 siblings, 0 replies; only message in thread
From: Dave Brolley @ 2006-05-09 18:45 UTC (permalink / raw)
  To: cgen

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

Hi,

I've committed this patch which corrects a typo in the generation of the 
decoder. The generated code was intended to shift 'entire_insn' to the 
right when the insn length is less than the base insn size.

Tested on an internal port which exposed the problem.

Dave

[-- Attachment #2: cgen-decode.ChangeLog --]
[-- Type: text/plain, Size: 151 bytes --]

2006-05-09  Dave Brolley  <brolley@redhat.com>

	* utils-sim.scm (-gen-decode-insn-entry): Generated code should shift
	'entire_insn' not 'base_insn'.

[-- Attachment #3: cgen-decode.patch.txt --]
[-- Type: text/plain, Size: 1282 bytes --]

Index: cgen/utils-sim.scm
===================================================================
RCS file: /cvs/src/src/cgen/utils-sim.scm,v
retrieving revision 1.14
diff -c -p -r1.14 utils-sim.scm
*** cgen/utils-sim.scm	5 Dec 2005 01:27:23 -0000	1.14
--- cgen/utils-sim.scm	9 May 2006 18:39:16 -0000
***************
*** 1,5 ****
  ; Generic simulator application utilities.
! ; Copyright (C) 2000, 2005 Red Hat, Inc.
  ; This file is part of CGEN.
  ; See file COPYING.CGEN for details.
  
--- 1,5 ----
  ; Generic simulator application utilities.
! ; Copyright (C) 2000, 2005, 2006 Red Hat, Inc.
  ; This file is part of CGEN.
  ; See file COPYING.CGEN for details.
  
***************
*** 631,637 ****
  		     (if (and (equal? APPLICATION 'SID-SIMULATOR)
  			      (> (state-base-insn-bitsize) (insn-length insn)))
  			 (string-append
! 			  indent "    entire_insn = base_insn >> "
  			  (number->string (- (state-base-insn-bitsize) (insn-length insn)))
  			  ";\n")
  			 "")
--- 631,637 ----
  		     (if (and (equal? APPLICATION 'SID-SIMULATOR)
  			      (> (state-base-insn-bitsize) (insn-length insn)))
  			 (string-append
! 			  indent "    entire_insn = entire_insn >> "
  			  (number->string (- (state-base-insn-bitsize) (insn-length insn)))
  			  ";\n")
  			 "")

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-09 18:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-09 18:45 [patch][commit] Typo in utils-sim.scm Generating Decoder Dave Brolley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).