+2008-06-17 Dave Brolley <brolley@redhat.com>
+
+ * cpu/xstormy16.cpu (h-pc): Add a set handler.
+ (h-gr): Likewise.
+
2007-11-13 Dave Brolley <brolley@redhat.com>
* cgen-intrinsics.scm (load-files): Remove reference to fixup.scm.
; xstormy16 CPU core description. -*- Scheme -*-
-; Copyright (C) 2001, 2002, 2003 Red Hat, Inc.
+; Copyright (C) 2001, 2002, 2003, 2006 Red Hat, Inc.
; This file is part of CGEN.
; See file COPYING.CGEN for details.
\f
; Hardware elements.
-(dsh h-pc "program counter" (PC) (pc))
+(define-hardware
+ (name h-pc)
+ (comment "program counter")
+ (attrs PC)
+ (type pc)
+ (set (newval) (c-call "h_pc_set_handler" newval))
+)
(define-keyword
(name gr-names)
(type register WI (16))
(indices extern-keyword gr-names)
(get (index) (and #xFFFF (raw-reg h-gr index)))
- (set (index newval) (set (raw-reg h-gr index) (and #xFFFF newval)))
+ (set (index newval) (c-call "h_gr_set_handler" index newval))
)
(define-hardware