mmapped_ipr.hh revision 4152
12292SN/A/* 210333Smitch.hayenga@arm.com * Copyright (c) 2007 The Hewlett-Packard Development Company 310239Sbinhpham@cs.rutgers.edu * All rights reserved. 48707Sandreas.hansson@arm.com * 58707Sandreas.hansson@arm.com * Redistribution and use of this software in source and binary forms, 68707Sandreas.hansson@arm.com * with or without modification, are permitted provided that the 78707Sandreas.hansson@arm.com * following conditions are met: 88707Sandreas.hansson@arm.com * 98707Sandreas.hansson@arm.com * The software must be used only for Non-Commercial Use which means any 108707Sandreas.hansson@arm.com * use which is NOT directed to receiving any direct monetary 118707Sandreas.hansson@arm.com * compensation for, or commercial advantage from such use. Illustrative 128707Sandreas.hansson@arm.com * examples of non-commercial use are academic research, personal study, 138707Sandreas.hansson@arm.com * teaching, education and corporate research & development. 148707Sandreas.hansson@arm.com * Illustrative examples of commercial use are distributing products for 152727Sktlim@umich.edu * commercial advantage and providing services using the software for 162292SN/A * commercial advantage. 172292SN/A * 182292SN/A * If you wish to use this software or functionality therein that may be 192292SN/A * covered by patents for commercial use, please contact: 202292SN/A * Director of Intellectual Property Licensing 212292SN/A * Office of Strategy and Technology 222292SN/A * Hewlett-Packard Company 232292SN/A * 1501 Page Mill Road 242292SN/A * Palo Alto, California 94304 252292SN/A * 262292SN/A * Redistributions of source code must retain the above copyright notice, 272292SN/A * this list of conditions and the following disclaimer. Redistributions 282292SN/A * in binary form must reproduce the above copyright notice, this list of 292292SN/A * conditions and the following disclaimer in the documentation and/or 302292SN/A * other materials provided with the distribution. Neither the name of 312292SN/A * the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 322292SN/A * contributors may be used to endorse or promote products derived from 332292SN/A * this software without specific prior written permission. No right of 342292SN/A * sublicense is granted herewith. Derivatives of the software and 352292SN/A * output created using the software may be prepared, but only for 362292SN/A * Non-Commercial Uses. Derivatives of the software may be shared with 372292SN/A * others provided: (i) the others agree to abide by the list of 382292SN/A * conditions herein which includes the Non-Commercial Use restrictions; 392292SN/A * and (ii) such Derivatives of the software include the above copyright 402689Sktlim@umich.edu * notice to acknowledge the contribution from this software where 412689Sktlim@umich.edu * applicable, this list of conditions and the disclaimer below. 422292SN/A * 432292SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 449944Smatt.horsnell@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 459944Smatt.horsnell@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 469944Smatt.horsnell@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 472329SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 482980Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 492329SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 502329SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 5113449Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 522292SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 539444SAndreas.Sandberg@ARM.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 548232Snate@binkert.org * 558232Snate@binkert.org * Authors: Gabe Black 568232Snate@binkert.org */ 576221Snate@binkert.org 582292SN/A#ifndef __ARCH_X86_MMAPEDIPR_HH__ 596221Snate@binkert.org#define __ARCH_X86_MMAPEDIPR_HH__ 605529Snate@binkert.org 612292SN/A/** 625529Snate@binkert.org * @file 638707Sandreas.hansson@arm.com * 6413560Snikos.nikoleris@arm.com * ISA-specific helper functions for memory mapped IPR accesses. 654329Sktlim@umich.edu */ 664329Sktlim@umich.edu 6713472Srekai.gonzalezalberquilla@arm.com#include "config/full_system.hh" 6813472Srekai.gonzalezalberquilla@arm.com#include "cpu/thread_context.hh" 6913472Srekai.gonzalezalberquilla@arm.com#include "mem/packet.hh" 7013472Srekai.gonzalezalberquilla@arm.com 7110333Smitch.hayenga@arm.comnamespace X86ISA 722292SN/A{ 739868Sjthestness@gmail.com inline Tick 749868Sjthestness@gmail.com handleIprRead(ThreadContext *xc, Packet *pkt) 752292SN/A { 762292SN/A#if !FULL_SYSTEM 772292SN/A panic("Shouldn't have a memory mapped register in SE\n"); 782292SN/A#endif 792292SN/A } 8013560Snikos.nikoleris@arm.com 812292SN/A inline Tick 8213560Snikos.nikoleris@arm.com handleIprWrite(ThreadContext *xc, Packet *pkt) 832292SN/A { 848346Sksewell@umich.edu#if !FULL_SYSTEM 852292SN/A panic("Shouldn't have a memory mapped register in SE\n"); 8613560Snikos.nikoleris@arm.com#endif 872292SN/A } 882292SN/A}; 892292SN/A 902292SN/A#endif // __ARCH_X86_MMAPEDIPR_HH__ 912292SN/A