#  Copyright 2008 by Sun Microsystems, Inc.
#
#  This file is part of the CAVA system.
#
#  CAVA is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  CAVA is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with CAVA; see the file COPYING.  If not, write to
#  the Free Software Foundation, 59 Temple Place - Suite 330,
#  Boston, MA 02111-1307, USA.
#
#                          ----    ----
#
#  This file contains all the "command line arguments" that the cavanator needs
#  to make it work with the 3 byte/6 byte version of CAVA.  The need for these
#  could be obviated by chainging the default values in the cavanator python
#  source.
#
# (The reason I added the ability to read arguments from a file to the
# cavanator was the difficulty of getting the right magic so that "--from" and
# "--instruction_length" could pass through a makefile and a shell.)

--macro=unconditional_branch
--unconditional_branch=unconditional_branch
--macro=conditional_branch
--conditional_branch=conditional_branch
--nbr_of_regs=64
--!xtra_reg
--rightshift=target=0
--bfd_reloc=call
--bfd_reloc=far
--bfd_reloc=near
--bfd_reloc=targ
--from_pc=(memory + (pc))
--instruction_length=#define instruction_length(parcel)   ((ToP_of(parcel) & 0x7) == 0x7 ? 8 : 4)
--!use_rightshift
