arch-power: Added support for SMT
authorKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 09:10:51 +0000 (14:40 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Tue, 20 Aug 2019 06:24:29 +0000 (11:54 +0530)
commit7df680b6d31af485c34f160103f6c5f9c161463e
tree26b229881b066f3b9eb7c961ca9982eae2fa246e
parent84b7b775df30aa317fa8afc0a15392b6a3081f4d
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