Both. It's a re-entrant system.
The mind produces thoughts, but what produced the mind? It was the feedback from the environment and thoughts. Sure, the hardware is just biology, but that isn't the mind - that is just a framework for the mind to form.
The mind produces thoughts, but what produced the mind? It was the feedback from the environment and thoughts. Sure, the hardware is just biology, but that isn't the mind - that is just a framework for the mind to form.