1*7c92cdcdSdrahn /* $OpenBSD: riscv64.h,v 1.1 2021/04/29 18:48:30 drahn Exp $ */ 2*7c92cdcdSdrahn 3*7c92cdcdSdrahn /*- 4*7c92cdcdSdrahn * Copyright (c) 1992, 1993 5*7c92cdcdSdrahn * The Regents of the University of California. All rights reserved. 6*7c92cdcdSdrahn * 7*7c92cdcdSdrahn * This software was developed by the Computer Systems Engineering group 8*7c92cdcdSdrahn * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 9*7c92cdcdSdrahn * contributed to Berkeley. 10*7c92cdcdSdrahn * 11*7c92cdcdSdrahn * Redistribution and use in source and binary forms, with or without 12*7c92cdcdSdrahn * modification, are permitted provided that the following conditions 13*7c92cdcdSdrahn * are met: 14*7c92cdcdSdrahn * 1. Redistributions of source code must retain the above copyright 15*7c92cdcdSdrahn * notice, this list of conditions and the following disclaimer. 16*7c92cdcdSdrahn * 2. Redistributions in binary form must reproduce the above copyright 17*7c92cdcdSdrahn * notice, this list of conditions and the following disclaimer in the 18*7c92cdcdSdrahn * documentation and/or other materials provided with the distribution. 19*7c92cdcdSdrahn * 3. Neither the name of the University nor the names of its contributors 20*7c92cdcdSdrahn * may be used to endorse or promote products derived from this software 21*7c92cdcdSdrahn * without specific prior written permission. 22*7c92cdcdSdrahn * 23*7c92cdcdSdrahn * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24*7c92cdcdSdrahn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25*7c92cdcdSdrahn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26*7c92cdcdSdrahn * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27*7c92cdcdSdrahn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28*7c92cdcdSdrahn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29*7c92cdcdSdrahn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30*7c92cdcdSdrahn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31*7c92cdcdSdrahn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32*7c92cdcdSdrahn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33*7c92cdcdSdrahn * SUCH DAMAGE. 34*7c92cdcdSdrahn * 35*7c92cdcdSdrahn * @(#)sparc.h 8.1 (Berkeley) 6/6/93 36*7c92cdcdSdrahn */ 37*7c92cdcdSdrahn 38*7c92cdcdSdrahn /* 39*7c92cdcdSdrahn * offset (in bytes) of the code from the entry address of a routine. 40*7c92cdcdSdrahn * (see asgnsamples for use and explanation.) 41*7c92cdcdSdrahn */ 42*7c92cdcdSdrahn #define OFFSET_OF_CODE 0 43*7c92cdcdSdrahn #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) 44*7c92cdcdSdrahn 45*7c92cdcdSdrahn enum opermodes { dummy }; 46*7c92cdcdSdrahn typedef enum opermodes operandenum; 47