arch-power: Added support for SMT
authorKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 09:10:51 +0000 (14:40 +0530)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 04:08:55 +0000 (04:08 +0000)
commita1d5d18dfe812a263cc0a2e4fd5bd0f4bb7649e7
tree12e2d98a7cc096c4524cbd451db84d23b41d4d3b
parent0317ddbcd69d913252141eb4f4d6720e0d848569
arch-power: Added support for SMT

This adds support for SMT (simultaneous multi-threading).
  * Enable multithreading for power architecture.
  * Make number of threads 2.
  * Added support for post and clear interrupt.
  * Added interrupt array support for external interrupts so
    that it will check any pending interrupt request in every
    tick.
  * Initialize PIR for second thread.
  * Initialize PC state for second thread so that it
    will loop until first thread try to wake up secondary
    threads.
  * Initialize register r3 for second thread.

Change-Id: I5825e62a94b50aaa213eb64335973129addf2e4c
Signed-off-by: Kajol Jain <kajoljain797@gmail.com>
configs/common/FSConfig.py
src/arch/power/interrupts.hh
src/arch/power/system.cc
src/cpu/BaseCPU.py
src/cpu/base.cc
src/sim/system.cc