Shivani Parekh has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/33516 )
Change subject: arch-x86: Replaced master/slave variables,comments
......................................................................
arch-x86: Replaced master/slave variables,comments
src/arch/x86/X86LocalApic.py
Change-Id: I4298fe7059a8860fcb25d2a296e7c74409d821d8
---
M src/arch/x86/X86LocalApic.py
M src/arch/x86/interrupts.cc
M src/arch/x86/interrupts.hh
3 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/arch/x86/X86LocalApic.py b/src/arch/x86/X86LocalApic.py
index 442a5e1..39004d2 100644
--- a/src/arch/x86/X86LocalApic.py
+++ b/src/arch/x86/X86LocalApic.py
@@ -48,8 +48,15 @@
type = 'X86LocalApic'
cxx_class = 'X86ISA::Interrupts'
cxx_header = 'arch/x86/interrupts.hh'
- int_master = RequestPort("Port for sending interrupt messages")
- int_slave = ResponsePort("Port for receiving interrupt messages")
+
+ int_requestor = RequestPort("Port for sending interrupt messages")
+ int_master = DeprecatedParam(int_requestor,
+ '`int_master` is now called `int_requestor`')
+
+ int_responder = ResponsePort("Port for receiving interrupt messages")
+ int_slave = DeprecatedParam(int_responder,
+ '`int_slave` is now called `int_responder`')
+
int_latency = Param.Latency('1ns', \
"Latency for an interrupt to propagate through this device.")
pio = ResponsePort("Programmed I/O port")
diff --git a/src/arch/x86/interrupts.cc b/src/arch/x86/interrupts.cc
index 2be0746..b25e8a7 100644
--- a/src/arch/x86/interrupts.cc
+++ b/src/arch/x86/interrupts.cc
@@ -603,8 +603,8 @@
pendingStartup(false), startupVector(0),
startedUp(false), pendingUnmaskableInt(false),
pendingIPIs(0),
- intSlavePort(name() + ".int_slave", this, this),
- intMasterPort(name() + ".int_master", this, this, p->int_latency),
+ intSlavePort(name() + ".int_responder", this, this),
+ intMasterPort(name() + ".int_requestor", this, this, p->int_latency),
pioPort(this), pioDelay(p->pio_latency)
{
memset(regs, 0, sizeof(regs));
diff --git a/src/arch/x86/interrupts.hh b/src/arch/x86/interrupts.hh
index c1b2565..1a4904f 100644
--- a/src/arch/x86/interrupts.hh
+++ b/src/arch/x86/interrupts.hh
@@ -228,9 +228,9 @@
Port &getPort(const std::string &if_name,
PortID idx=InvalidPortID) override
{
- if (if_name == "int_master") {
- return intMasterPort;
- } else if (if_name == "int_slave") {
+ if (if_name == "int_requestor") {
+ return intRequestPort;
+ } else if (if_name == "int_responder") {
return intSlavePort;
} else if (if_name == "pio") {
return pioPort;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/33516
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I4298fe7059a8860fcb25d2a296e7c74409d821d8
Gerrit-Change-Number: 33516
Gerrit-PatchSet: 1
Gerrit-Owner: Shivani Parekh <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s