19384SAndreas.Sandberg@arm.com/* 29384SAndreas.Sandberg@arm.com * Copyright (c) 2012 ARM Limited 39384SAndreas.Sandberg@arm.com * All rights reserved 49384SAndreas.Sandberg@arm.com * 59384SAndreas.Sandberg@arm.com * The license below extends only to copyright in the software and shall 69384SAndreas.Sandberg@arm.com * not be construed as granting a license to any other intellectual 79384SAndreas.Sandberg@arm.com * property including but not limited to intellectual property relating 89384SAndreas.Sandberg@arm.com * to a hardware implementation of the functionality of the software 99384SAndreas.Sandberg@arm.com * licensed hereunder. You may use the software subject to the license 109384SAndreas.Sandberg@arm.com * terms below provided that you ensure that this notice is replicated 119384SAndreas.Sandberg@arm.com * unmodified and in its entirety in all distributions of the software, 129384SAndreas.Sandberg@arm.com * modified or unmodified, in source code or in binary form. 139384SAndreas.Sandberg@arm.com * 149384SAndreas.Sandberg@arm.com * Redistribution and use in source and binary forms, with or without 159384SAndreas.Sandberg@arm.com * modification, are permitted provided that the following conditions are 169384SAndreas.Sandberg@arm.com * met: redistributions of source code must retain the above copyright 179384SAndreas.Sandberg@arm.com * notice, this list of conditions and the following disclaimer; 189384SAndreas.Sandberg@arm.com * redistributions in binary form must reproduce the above copyright 199384SAndreas.Sandberg@arm.com * notice, this list of conditions and the following disclaimer in the 209384SAndreas.Sandberg@arm.com * documentation and/or other materials provided with the distribution; 219384SAndreas.Sandberg@arm.com * neither the name of the copyright holders nor the names of its 229384SAndreas.Sandberg@arm.com * contributors may be used to endorse or promote products derived from 239384SAndreas.Sandberg@arm.com * this software without specific prior written permission. 249384SAndreas.Sandberg@arm.com * 259384SAndreas.Sandberg@arm.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 269384SAndreas.Sandberg@arm.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 279384SAndreas.Sandberg@arm.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 289384SAndreas.Sandberg@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 299384SAndreas.Sandberg@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 309384SAndreas.Sandberg@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 319384SAndreas.Sandberg@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 329384SAndreas.Sandberg@arm.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 339384SAndreas.Sandberg@arm.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 349384SAndreas.Sandberg@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 359384SAndreas.Sandberg@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 369384SAndreas.Sandberg@arm.com * 379384SAndreas.Sandberg@arm.com * Authors: Andreas Sandberg 389384SAndreas.Sandberg@arm.com */ 399384SAndreas.Sandberg@arm.com 409384SAndreas.Sandberg@arm.com#include "arch/power/isa.hh" 4111793Sbrandon.potter@amd.com 429384SAndreas.Sandberg@arm.com#include "params/PowerISA.hh" 439384SAndreas.Sandberg@arm.com 449384SAndreas.Sandberg@arm.comnamespace PowerISA 459384SAndreas.Sandberg@arm.com{ 469384SAndreas.Sandberg@arm.com 479384SAndreas.Sandberg@arm.comISA::ISA(Params *p) 489384SAndreas.Sandberg@arm.com : SimObject(p) 499384SAndreas.Sandberg@arm.com{ 509384SAndreas.Sandberg@arm.com clear(); 519384SAndreas.Sandberg@arm.com} 529384SAndreas.Sandberg@arm.com 539384SAndreas.Sandberg@arm.comconst PowerISAParams * 549384SAndreas.Sandberg@arm.comISA::params() const 559384SAndreas.Sandberg@arm.com{ 569384SAndreas.Sandberg@arm.com return dynamic_cast<const Params *>(_params); 579384SAndreas.Sandberg@arm.com} 589384SAndreas.Sandberg@arm.com 599384SAndreas.Sandberg@arm.com} 609384SAndreas.Sandberg@arm.com 619384SAndreas.Sandberg@arm.comPowerISA::ISA * 629384SAndreas.Sandberg@arm.comPowerISAParams::create() 639384SAndreas.Sandberg@arm.com{ 649384SAndreas.Sandberg@arm.com return new PowerISA::ISA(this); 659384SAndreas.Sandberg@arm.com} 669384SAndreas.Sandberg@arm.com 67