14679SN/A/* 24679SN/A * Copyright (c) 2007 The Hewlett-Packard Development Company 34679SN/A * All rights reserved. 44679SN/A * 57087SN/A * The license below extends only to copyright in the software and shall 67087SN/A * not be construed as granting a license to any other intellectual 77087SN/A * property including but not limited to intellectual property relating 87087SN/A * to a hardware implementation of the functionality of the software 97087SN/A * licensed hereunder. You may use the software subject to the license 107087SN/A * terms below provided that you ensure that this notice is replicated 117087SN/A * unmodified and in its entirety in all distributions of the software, 127087SN/A * modified or unmodified, in source code or in binary form. 134679SN/A * 147087SN/A * Redistribution and use in source and binary forms, with or without 157087SN/A * modification, are permitted provided that the following conditions are 167087SN/A * met: redistributions of source code must retain the above copyright 177087SN/A * notice, this list of conditions and the following disclaimer; 187087SN/A * redistributions in binary form must reproduce the above copyright 197087SN/A * notice, this list of conditions and the following disclaimer in the 207087SN/A * documentation and/or other materials provided with the distribution; 217087SN/A * neither the name of the copyright holders nor the names of its 224679SN/A * contributors may be used to endorse or promote products derived from 237087SN/A * this software without specific prior written permission. 244679SN/A * 254679SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 264679SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 274679SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 284679SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 294679SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 304679SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 314679SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 324679SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 334679SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 344679SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 354679SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 364679SN/A * 374679SN/A * Authors: Gabe Black 384679SN/A */ 394679SN/A 4010467Sandreas.hansson@arm.com#ifndef __ARCH_X86_LDSTFLAGS_HH__ 4110467Sandreas.hansson@arm.com#define __ARCH_X86_LDSTFLAGS_HH__ 424679SN/A 4310467Sandreas.hansson@arm.com#include "base/bitfield.hh" 445912SN/A#include "mem/request.hh" 454679SN/A 4610467Sandreas.hansson@arm.com/** 4710467Sandreas.hansson@arm.com * This is exposed globally, independent of the ISA. 4810467Sandreas.hansson@arm.com */ 494679SN/Anamespace X86ISA 504679SN/A{ 5110467Sandreas.hansson@arm.com const Request::FlagsType M5_VAR_USED SegmentFlagMask = mask(4); 526622SN/A const int FlagShift = 4; 535912SN/A enum FlagBit { 545965SN/A CPL0FlagBit = 1, 556132SN/A AddrSizeFlagBit = 2, 566132SN/A StoreCheck = 4 575912SN/A }; 584679SN/A} 594679SN/A 6010467Sandreas.hansson@arm.com#endif //__ARCH_X86_LDSTFLAGS_HH__ 61